Used first code snippets from ClearURLs v2: https://gitlab.com/ClearURLs/core/-/blob/master/src/utils/URLHashParams.ts
This commit is contained in:
Kevin R
2022-07-27 00:28:15 +02:00
parent 0f08b0f7e3
commit 0d7381f02a
7 changed files with 246 additions and 6 deletions

13
core_js/utils/URLHashParams.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
/**
* Models a hash parameter of a given {@link URL}.
*/
export default class URLHashParams {
private _params;
constructor(url: URL);
append(name: string, value?: string | null): void;
delete(name: string): void;
get(name: string): string | null;
getAll(name: string): Set<string | null>;
keys(): IterableIterator<string>;
toString(): string;
}