Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e7b9f06

Browse files
feat(queryconfig): removed queryElement from internal config
1 parent b0b648c commit e7b9f06

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

‎src/config.ts‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@ const queryElementAll: QueryAllElements = <T extends Element>(
1414

1515
interface InternalConfig extends Config {
1616
_disableExpensiveErrorDiagnostics: boolean
17-
/**
18-
* Returns the first element that is a descendant of node that matches selectors.
19-
*/
20-
queryElement: QueryElement
21-
/**
22-
* Returns all element descendants of node that match selectors.
23-
*/
24-
queryAllElements: QueryAllElements
2517
}
2618

2719
// It would be cleaner for this to live inside './queries', but

‎types/config.d.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ export interface Config {
4141
/**
4242
* Returns the first element that is a descendant of node that matches selectors.
4343
*/
44-
queryElement?: QueryElement
44+
queryElement: QueryElement
4545
/**
4646
* Returns all element descendants of node that match selectors.
4747
*/
48-
queryAllElements?: QueryAllElements
48+
queryAllElements: QueryAllElements
4949
getElementError: (message: string | null, container: Element) => Error
5050
}
5151

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /