summaryrefslogtreecommitdiff
path: root/source/helpers/types.d.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <me@fregante.com> 2023-02-24 13:46:53 +0800
committerGravatar GitHub <noreply@github.com> 2023-02-24 05:46:53 +0000
commit6e1be0b732b272b3bf58c4db0d9d76fb8ed5c11e (patch)
tree61797333abcef13af8dfd3c361f2e1b5ddb9f571 /source/helpers/types.d.ts
parentdd66045e46c27d95dee613d3afcd9ed69065ded4 (diff)
downloadrefined-github-6e1be0b732b272b3bf58c4db0d9d76fb8ed5c11e.tar.gz
refined-github-6e1be0b732b272b3bf58c4db0d9d76fb8ed5c11e.tar.zst
refined-github-6e1be0b732b272b3bf58c4db0d9d76fb8ed5c11e.zip
Meta: Update `typed-query-selector` (#6370)
Diffstat (limited to 'source/helpers/types.d.ts')
-rw-r--r--source/helpers/types.d.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/helpers/types.d.ts b/source/helpers/types.d.ts
index 332a1f1e..06f4cb80 100644
--- a/source/helpers/types.d.ts
+++ b/source/helpers/types.d.ts
@@ -1,18 +1,18 @@
/* eslint-disable @typescript-eslint/consistent-type-definitions -- Declaration merging necessary */
/* eslint-disable @typescript-eslint/ban-types -- The API does return `null`, not `undefined` */
-import type {ParseSelector} from 'typed-query-selector/parser';
+import type {StrictlyParseSelector} from 'typed-query-selector/parser';
declare global {
interface ParentNode {
- querySelector<S extends string>(selector: S | readonly S[]): ParseSelector<S, HTMLElement> | null;
+ querySelector<S extends string>(selector: S | readonly S[]): StrictlyParseSelector<S, HTMLElement> | null;
querySelectorAll<S extends string>(
selector: S | readonly S[],
- ): NodeListOf<ParseSelector<S, HTMLElement>>;
+ ): NodeListOf<StrictlyParseSelector<S, HTMLElement>>;
}
interface Element {
- closest<S extends string>(selector: S | readonly S[]): ParseSelector<S, HTMLElement> | null;
+ closest<S extends string>(selector: S | readonly S[]): StrictlyParseSelector<S, HTMLElement> | null;
matches(selectors: string | readonly string[]): boolean;
}
}