Fix broken type declaration
This commit is contained in:
parent
191ae2113c
commit
c130b72ab6
1 changed files with 3 additions and 2 deletions
5
src/js/types.d.ts
vendored
5
src/js/types.d.ts
vendored
|
@ -48,12 +48,13 @@ type TextDescriptor = string;
|
||||||
type ElementDescriptor = [
|
type ElementDescriptor = [
|
||||||
tag: string,
|
tag: string,
|
||||||
// eslint-disable-next-line @typescript-eslint/array-type
|
// eslint-disable-next-line @typescript-eslint/array-type
|
||||||
...args: (NodeDescriptor | (Partial<HTMLElement> & Record<string, any>))[]
|
...args: (NodeDescriptor | (Partial<HTMLElement> | Record<string, any>))[]
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a component in the SJDON notation.
|
* Represents a component in the SJDON notation.
|
||||||
*/
|
*/
|
||||||
type FunctionNode = [
|
type FunctionNode = [
|
||||||
fn: (...args: any[]) => NodeDescriptor, ...args: any[]
|
fn: (...args: any[]) => NodeDescriptor,
|
||||||
|
...args: any[]
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue