aboutsummaryrefslogtreecommitdiffstats
path: root/vanilla/node_modules/@asamuzakjp/dom-selector/dist/cjs/index.d.cts
diff options
context:
space:
mode:
Diffstat (limited to 'vanilla/node_modules/@asamuzakjp/dom-selector/dist/cjs/index.d.cts')
-rw-r--r--vanilla/node_modules/@asamuzakjp/dom-selector/dist/cjs/index.d.cts16
1 files changed, 16 insertions, 0 deletions
diff --git a/vanilla/node_modules/@asamuzakjp/dom-selector/dist/cjs/index.d.cts b/vanilla/node_modules/@asamuzakjp/dom-selector/dist/cjs/index.d.cts
new file mode 100644
index 0000000..a5a8b10
--- /dev/null
+++ b/vanilla/node_modules/@asamuzakjp/dom-selector/dist/cjs/index.d.cts
@@ -0,0 +1,16 @@
+declare class DOMSelector {
+ constructor(window: Window, document: Document, opt?: object);
+ clear: () => void;
+ check: (selector: string, node: Element, opt?: object) => CheckResult;
+ matches: (selector: string, node: Element, opt?: object) => boolean;
+ closest: (selector: string, node: Element, opt?: object) => Element | null;
+ querySelector: (selector: string, node: Document | DocumentFragment | Element, opt?: object) => Element | null;
+ querySelectorAll: (selector: string, node: Document | DocumentFragment | Element, opt?: object) => Array<Element>;
+ #private;
+}
+type CheckResult = {
+ match: boolean;
+ pseudoElement: string | null;
+};
+
+export { type CheckResult, DOMSelector };