-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowser.d.ts
More file actions
31 lines (27 loc) · 770 Bytes
/
browser.d.ts
File metadata and controls
31 lines (27 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// types/some-javascript-utils/Browser.d.ts
declare module "some-javascript-utils/browser" {
export function getCookie(name: string): string;
export function createCookie(
name: string,
days: number,
value: any,
path?: string,
sameSite?: "Lax" | "Strict" | "None"
): void;
export function deleteCookie(name: string): void;
export function getUserLanguage(cookie?: string): string;
export function scrollTo(
targetY?: number,
targetX?: number,
dealer?: Window | HTMLElement,
behavior?: ScrollBehavior
): void;
export function parseQueries(
queries: string
): Record<string, string | undefined>;
export function validation(
key: string,
storage?: "local" | "session",
value?: any
): boolean;
}