Skip to content

Commit

Permalink
Allow generics in Signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
gossi authored Aug 17, 2023
1 parent a165260 commit 5fc1115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/template/-private/signature.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export type ComponentSignatureBlocks<S> = S extends { Blocks: infer Blocks }

/** Given a component signature `S`, get back the `Element` type. */
export type ComponentSignatureElement<S> = S extends { Element: infer Element }
? NonNullable<Element> extends never
? Element extends null
? unknown
: Element
: unknown;
Expand Down

0 comments on commit 5fc1115

Please sign in to comment.