Skip to content

Commit

Permalink
used // comments so that internal stuff won't show in the index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
godzylinux committed May 23, 2024
1 parent a9867c2 commit b2e7e30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 5 additions & 5 deletions packages/svelte/src/reactivity/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReactiveURLSearchParams>}
Expand Down
5 changes: 0 additions & 5 deletions packages/svelte/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b2e7e30

Please sign in to comment.