Refactor the ElementDescriptor
type
This commit is contained in:
parent
5ff474a7ea
commit
c94dc1cb8f
2
src/js/types.d.ts
vendored
2
src/js/types.d.ts
vendored
|
@ -48,7 +48,7 @@ type TextDescriptor = string;
|
|||
type ElementDescriptor = [
|
||||
tag: string,
|
||||
// eslint-disable-next-line @typescript-eslint/array-type
|
||||
...args: (NodeDescriptor | Record<string, unknown>)[]
|
||||
...args: (NodeDescriptor | (Partial<HTMLElement> & Record<string, any>))[]
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue