Skip to content

Commit

Permalink
fix(template): better typings to support <element role="string">
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Oct 23, 2023
1 parent fde795e commit efb1668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/template/src/elements.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ declare namespace JSX {
type NoFunctions<T> = { [P in keyof T]: T[P] extends ((...args: any[]) => any) ? never : P }[keyof T];

type ExtractProps<T> = {
[P in Extract<NoFunctions<T>, WritableKeysOf<T>>]?: T[P] extends string | number | Date | boolean ? T[P] : never;
[P in Extract<NoFunctions<T>, WritableKeysOf<T>>]?: T[P] extends string | number | Date | boolean ? T[P] : any;
} & { [name: string]: any; class?: string };


Expand Down

0 comments on commit efb1668

Please sign in to comment.