Skip to content

Commit

Permalink
Added types for exported functions
Browse files Browse the repository at this point in the history
  • Loading branch information
viktor-podzigun committed Jun 2, 2023
1 parent 2161c8b commit f61ec10
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
export * from "./src/assertComponent";
import React from "react";
import TestRenderer from "react-test-renderer";

export function assertComponent(
result: TestRenderer.ReactTestInstance | string,
expectedElement: React.ReactElement | string
): void;

export function assertComponents(
results: (TestRenderer.ReactTestInstance | string)[],
...expectedElements: (React.ReactElement | string)[]
): void;

0 comments on commit f61ec10

Please sign in to comment.