From 4416716383c8bd70a36f191ce584ca86c52da3be Mon Sep 17 00:00:00 2001 From: Ryan Carniato Date: Tue, 22 Oct 2024 11:46:48 -0700 Subject: [PATCH] update spread types --- packages/dom-expressions/src/client.d.ts | 2 +- packages/dom-expressions/src/server.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dom-expressions/src/client.d.ts b/packages/dom-expressions/src/client.d.ts index 2a155728..cf9a4a8c 100644 --- a/packages/dom-expressions/src/client.d.ts +++ b/packages/dom-expressions/src/client.d.ts @@ -25,7 +25,7 @@ export function delegateEvents(eventNames: string[], d?: Document): void; export function clearDelegatedEvents(d?: Document): void; export function spread( node: Element, - accessor: (() => T) | T, + accessor: T, isSVG?: Boolean, skipChildren?: Boolean ): void; diff --git a/packages/dom-expressions/src/server.d.ts b/packages/dom-expressions/src/server.d.ts index 6d39b01a..ee1b3904 100644 --- a/packages/dom-expressions/src/server.d.ts +++ b/packages/dom-expressions/src/server.d.ts @@ -129,7 +129,7 @@ export function insert( /** @deprecated not supported on the server side */ export function spread( node: Element, - accessor: (() => T) | T, + accessor: T, isSVG?: Boolean, skipChildren?: Boolean ): void;