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

Commit bb22a7c

Browse files
mAAdhaTTahbcarroll22
authored andcommitted
Fix(types): rename asFragment to asJSON (#34)
The library exports `asJSON`; `asFragment` is a DOM function.
1 parent 4e30276 commit bb22a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typings/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type RenderResult<Q extends Queries = typeof queries> = {
2929
debug: (element?: NativeTestInstance) => void;
3030
rerender: (ui: ReactElement) => void;
3131
unmount: () => void;
32-
asFragment: () => NativeTestInstanceJSON;
32+
asJSON: () => NativeTestInstanceJSON;
3333
} & { [P in keyof Q]: BoundFunction<Q[P]> };
3434

3535
export interface RenderOptions<Q extends Queries = typeof queries> {

0 commit comments

Comments
 (0)