chore: resolve linting errors & warnings
This commit is contained in:
parent
63ce5e330b
commit
b0ef223c9d
11 changed files with 177 additions and 144 deletions
|
|
@ -30,7 +30,9 @@ export type Element = HTMLElement | string | boolean | undefined | null;
|
|||
/**
|
||||
* Custom HTMLElement factory that can be parameterized by props.
|
||||
*/
|
||||
export interface Component<P extends object = {}> {
|
||||
export interface Component<
|
||||
P extends Record<string, unknown> = Record<string, never>
|
||||
> {
|
||||
(
|
||||
props: P & {
|
||||
children?: Element[];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue