From c130b72ab6e1a1844e1719da57e479a8ff0b9a0a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 23 Dec 2022 18:09:06 +0100 Subject: [PATCH] Fix broken type declaration --- src/js/types.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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[] ];