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

Commit c153fce

Browse files
committed
Import OptionsReceived from prettyFormat
1 parent d7d3c38 commit c153fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ReactElement, ComponentType } from 'react'
22
import { ReactTestInstance, ReactTestRenderer, act } from 'react-test-renderer'
3+
import { OptionsReceived } from 'pretty-format'
34

45
// EVENTS
56
// ------
@@ -52,8 +53,7 @@ export declare function within<T = Queries>(element: ReactElement, queries?: T):
5253
// PREETY PRINT
5354
// ------------
5455

55-
// TODO: options are pretty-format options
56-
export declare function prettyPrint(element: ReactTestRenderer | NativeTestInstance, maxLength?: number, options?: any): string
56+
export declare function prettyPrint(element: ReactTestRenderer | NativeTestInstance | string, maxLength?: number, options?: OptionsReceived): string
5757

5858
// QUERIES
5959
// -------

0 commit comments

Comments
 (0)