From b2e7e302fee52c14bd726b7abb585bc3e7696ef3 Mon Sep 17 00:00:00 2001 From: godzylinux Date: Thu, 23 May 2024 15:24:35 +0330 Subject: [PATCH] used `//` comments so that internal stuff won't show in the index.d.ts --- packages/svelte/src/reactivity/url.js | 10 +++++----- packages/svelte/types/index.d.ts | 5 ----- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/packages/svelte/src/reactivity/url.js b/packages/svelte/src/reactivity/url.js index b878f160d2c8..588822d38fd6 100644 --- a/packages/svelte/src/reactivity/url.js +++ b/packages/svelte/src/reactivity/url.js @@ -2,11 +2,11 @@ import { untrack } from '../index-client.js'; import { ReactiveURLSearchParams } from './url-search-params.js'; import { make_reactive } from './utils.js'; -/** - * had to create a subclass for URLWithReactiveSearchParams - * because we cannot change the internal `searchParams` reference (which links to the web api implementation) so it requires - * some custom logic - */ +// +// had to create a subclass for URLWithReactiveSearchParams +// because we cannot change the internal `searchParams` reference (which links to the web api implementation) so it requires +// some custom logic +// class URLWithReactiveSearchParams extends URL { /** * @type {InstanceType} diff --git a/packages/svelte/types/index.d.ts b/packages/svelte/types/index.d.ts index a2e464f11542..5fa731b88761 100644 --- a/packages/svelte/types/index.d.ts +++ b/packages/svelte/types/index.d.ts @@ -2040,11 +2040,6 @@ declare module 'svelte/reactivity' { export const Set: SetConstructor; export const Map: MapConstructor; const ReactiveURL: typeof URLWithReactiveSearchParams; - /** - * had to create a subclass for URLWithReactiveSearchParams - * because we cannot change the internal `searchParams` reference (which links to the web api implementation) so it requires - * some custom logic - */ class URLWithReactiveSearchParams extends URL { #private; }