= tree.getAllByName(
diff --git a/typings/index.d.ts b/typings/index.d.ts
index 8232c5371..0b974e597 100644
--- a/typings/index.d.ts
+++ b/typings/index.d.ts
@@ -5,11 +5,13 @@ export interface GetByAPI {
getByName: (name: React.ReactType | string) => ReactTestInstance;
getByType: (type: React.ComponentType
) => ReactTestInstance;
getByText: (text: string | RegExp) => ReactTestInstance;
+ getByPlaceholder: (placeholder: string | RegExp) => ReactTestInstance;
getByProps: (props: Record) => ReactTestInstance;
getByTestId: (testID: string) => ReactTestInstance;
getAllByName: (name: React.ReactType | string) => Array;
getAllByType: (type: React.ComponentType
) => Array;
getAllByText: (text: string | RegExp) => Array;
+ getAllByPlaceholder: (placeholder: string | RegExp) => Array;
getAllByProps: (props: Record) => Array;
}
@@ -17,6 +19,7 @@ export interface QueryByAPI {
queryByName: (name: React.ReactType | string) => ReactTestInstance | null;
queryByType: (type: React.ComponentType
) => ReactTestInstance | null;
queryByText: (name: string | RegExp) => ReactTestInstance | null;
+ queryByPlaceholder: (placeholder: string | RegExp) => ReactTestInstance | null;
queryByProps: (props: Record) => ReactTestInstance | null;
queryByTestId: (testID: string) => ReactTestInstance | null;
queryAllByName: (name: React.ReactType | string) => Array | [];
@@ -24,6 +27,7 @@ export interface QueryByAPI {
type: React.ComponentType
) => Array | [];
queryAllByText: (text: string | RegExp) => Array | [];
+ queryAllByPlaceholder: (placeholder: string | RegExp) => Array | [];
queryAllByProps: (
props: Record
) => Array | [];