Skip to content

Commit 5fc1115

Browse files
authored
Allow generics in Signatures
1 parent a165260 commit 5fc1115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/template/-private/signature.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export type ComponentSignatureBlocks<S> = S extends { Blocks: infer Blocks }
4545

4646
/** Given a component signature `S`, get back the `Element` type. */
4747
export type ComponentSignatureElement<S> = S extends { Element: infer Element }
48-
? NonNullable<Element> extends never
48+
? Element extends null
4949
? unknown
5050
: Element
5151
: unknown;

0 commit comments

Comments
 (0)