-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
21 lines (15 loc) · 967 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
export declare function get<T extends Element>(el: T, attr: string): string | null
export declare function get<T extends Element>(el: T, attrs: string[]): Record<string, unknown>[] | 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[]): Record<string, unknown>[][] | 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[]): T
export declare function remove<T extends Element>(els: T[], attr: string | string[]): T[]
export default {
get,
set,
remove
}