From fb1aa4e6d2339f0a62aa33e19ea403c059b38d43 Mon Sep 17 00:00:00 2001 From: Viktor Marinho <56888067+viktormarinho@users.noreply.github.com> Date: Mon, 25 Mar 2024 18:44:49 -0300 Subject: fix(ext/web): Fix structuredClone Web API type declaration (any -> generic) (#22968) Closes #22958 Used the same type as in: https://github.com/microsoft/TypeScript/blob/main/src/lib/dom.generated.d.ts#L26114 --------- Signed-off-by: Viktor Marinho <56888067+viktormarinho@users.noreply.github.com> --- ext/web/lib.deno_web.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/web/lib.deno_web.d.ts') diff --git a/ext/web/lib.deno_web.d.ts b/ext/web/lib.deno_web.d.ts index d28e33f58..3ebc9af49 100644 --- a/ext/web/lib.deno_web.d.ts +++ b/ext/web/lib.deno_web.d.ts @@ -1124,10 +1124,10 @@ declare var MessagePort: { * * @category DOM APIs */ -declare function structuredClone( - value: any, +declare function structuredClone( + value: T, options?: StructuredSerializeOptions, -): any; +): T; /** * An API for compressing a stream of data. -- cgit v1.2.3