chore: resolve linting errors & warnings

This commit is contained in:
M. George Hansen 2020-06-01 23:29:59 -07:00
parent 63ce5e330b
commit b0ef223c9d
11 changed files with 177 additions and 144 deletions

View file

@ -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[];