Skip to content

Commit 597ee1c

Browse files
pbombKent C. Dodds
authored and
Kent C. Dodds
committed
fit(TS): Update TypeScript definitions for getQueriesForElement change (testing-library#40)
1 parent 7d7dd7a commit 597ee1c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Thanks for being willing to contribute!
88
## Project setup
99

1010
1. Fork and clone the repo
11-
2. Run `npm run setup -s` to install dependencies and run validation
11+
2. Run `npm run setup` to install dependencies and run validation
1212
3. Create a branch for your PR with `git checkout -b pr/your-branch-name`
1313

1414
> Tip: Keep your `master` branch pointing at the original repository and make

typings/bind-element-to-queries.d.ts renamed to typings/get-queries-for-element.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export type BoundFunction<T> = T extends (
1010
: never
1111
export type BoundFunctions<T> = {[P in keyof T]: BoundFunction<T[P]>}
1212

13-
export function bindElementToQueries(
13+
export function getQueriesForElement(
1414
element: HTMLElement,
1515
): BoundFunctions<typeof queries>

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ export * from './wait-for-element'
99
export * from './matches'
1010
export * from './get-node-text'
1111
export * from './events'
12-
export * from './bind-element-to-queries'
12+
export * from './get-queries-for-element'
1313
export * from './pretty-dom'

0 commit comments

Comments
 (0)