parcoursup/node_modules/bianco.query/index.d.ts

12 lines
569 B
TypeScript
Raw Normal View History

2023-03-05 13:23:23 +01:00
type Scope = Element
| Window
| Document
// borrowed from DOM querySelectorAll
declare function $<K extends keyof HTMLElementTagNameMap>(selectors: K, scope?: Scope): HTMLElementTagNameMap[K][];
declare function $<K extends keyof SVGElementTagNameMap>(selectors: K, scope?: Scope): SVGElementTagNameMap[K][];
declare function $<E extends Element = Element>(selectors: string, scope?: Scope): E[];
declare function $<W extends Window>(selectors: W, scope?: Scope): [W];
declare function $<D extends Document>(selectors: D, scope?: Scope): [D];
export default $