Skip to content

Commit 056b1e5

Browse files
gnapseKent C. Dodds
authored and
Kent C. Dodds
committed
fix(TS): update typings for optional option arguments (#168)
* Update typings for optional option arguments Both the container and the baseElement are optional. * container is not optional
1 parent 081fa92 commit 056b1e5

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
@@ -17,7 +17,7 @@ export interface RenderResult extends GetsAndQueries {
1717
*/
1818
export function render(
1919
ui: React.ReactElement<any>,
20-
options?: {container: HTMLElement; baseElement: HTMLElement},
20+
options?: {container: HTMLElement; baseElement?: HTMLElement},
2121
): RenderResult
2222

2323
/**

0 commit comments

Comments
 (0)