-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
27 lines (20 loc) · 1.27 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export declare function get<T extends Element>(el: T, attr: string): string | null
export declare function get<T extends Element>(el: T, attrs: string[]): string[] | null
export declare function get<T extends Element>(els: T[], attr: string): string[] | null
export declare function get<T extends Element>(els: T[], attrs: string[]): string[][] | null
export declare function set<T extends Element>(el: T, attr: string, val: unknown): T
export declare function set<T extends Element>(el: T, attrs: Record<string, unknown>): T
export declare function set<T extends Element>(els: T[], attr: string, val: unknown): T[]
export declare function set<T extends Element>(els: T[], attrs: Record<string, unknown>): T[]
export declare function remove<T extends Element>(el: T, attr: string | string[]): void
export declare function remove<T extends Element>(els: T[], attr: string | string[]): void
export declare function has<T extends Element>(el: T, attr: string): boolean | null
export declare function has<T extends Element>(el: T, attrs: string[]): boolean[] | null
export declare function has<T extends Element>(els: T[], attr: string): boolean[] | null
export declare function has<T extends Element>(els: T[], attrs: string[]): boolean[][] | null
export default {
get,
set,
remove,
has
}