diff --git a/src/js/types.d.ts b/src/js/types.d.ts index 60ca84c..52a51ea 100644 --- a/src/js/types.d.ts +++ b/src/js/types.d.ts @@ -48,12 +48,13 @@ type TextDescriptor = string; type ElementDescriptor = [ tag: string, // eslint-disable-next-line @typescript-eslint/array-type - ...args: (NodeDescriptor | (Partial & Record))[] + ...args: (NodeDescriptor | (Partial | Record))[] ]; /** * Represents a component in the SJDON notation. */ type FunctionNode = [ - fn: (...args: any[]) => NodeDescriptor, ...args: any[] + fn: (...args: any[]) => NodeDescriptor, + ...args: any[] ];