We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d09756d commit 753390aCopy full SHA for 753390a
packages/template/-private/signature.d.ts
@@ -45,7 +45,7 @@ export type ComponentSignatureBlocks<S> = S extends { Blocks: infer Blocks }
45
46
/** Given a component signature `S`, get back the `Element` type. */
47
export type ComponentSignatureElement<S> = S extends { Element: infer Element }
48
- ? NonNullable<Element> extends never
+ ? Element extends null
49
? unknown
50
: Element
51
: unknown;
0 commit comments