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 = [
tag: string,
// 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.
*/
type FunctionNode = [
fn: (...args: any[]) => NodeDescriptor, ...args: any[]
fn: (...args: any[]) => NodeDescriptor,
...args: any[]
];