Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

Commit 52b5ab7

Browse files
author
Brandon Carroll
committed
fix(types): make parameter names more consistent
1 parent dd03c5c commit 52b5ab7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

typings/query-helpers.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type SelectorMatcherOptions = Omit<MatcherOptions, 'selector'> & {
1010

1111
type ReactTestInstance = {
1212
getProp: (name: string) => NativeTestInstance;
13+
parentNode: NativeTestInstance;
1314
};
1415

1516
export type NativeTestInstance = Omit<
@@ -20,7 +21,7 @@ export type NativeTestInstance = Omit<
2021
export type QueryByProp = (
2122
attribute: string,
2223
container: NativeTestInstance,
23-
match: Matcher,
24+
id: Matcher,
2425
options?: MatcherOptions,
2526
) => NativeTestInstance | null;
2627

typings/to-json.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export interface NativeTestInstanceJSON {
55
props: { [propName: string]: any };
66
children: null | Array<NativeTestInstanceJSON>;
77
$$typeof?: Symbol;
8-
parent: NativeTestInstance;
98
}
109

1110
export const toJSON: (node: NativeTestInstance) => NativeTestInstanceJSON;

0 commit comments

Comments
 (0)