Fix broken type declaration

This commit is contained in:
Manuel Thalmann 2022-12-23 18:09:06 +01:00
parent 191ae2113c
commit c130b72ab6

5
src/js/types.d.ts vendored
View file

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