Skip to content

Commit

Permalink
Allow undefined for Snabbdom modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota-ka committed Jun 19, 2024
1 parent d60ee54 commit 869ff45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export declare namespace Internal {
};

type Modularize<Modules extends Record<string, any>> = {
[Mod in keyof Modules as Mod extends string ? `$${Mod}` : never]?: Modules[Mod];
[Mod in keyof Modules as Mod extends string ? `$${Mod}` : never]?: Modules[Mod] | undefined;
};

type HTMLElementProps<E extends HTMLElement, Props> = Props &
Expand Down

0 comments on commit 869ff45

Please sign in to comment.