Skip to content

Commit 80a01fe

Browse files
feat(queryconfig): removed queryElement from internal config
1 parent 091edc5 commit 80a01fe

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)