From 4eab2d95b28ead0ed61a77d19ee78ee9c9644b42 Mon Sep 17 00:00:00 2001 From: Mustafa Kuru Date: Wed, 5 May 2021 08:01:07 +0300 Subject: [PATCH] withCardon options parameter changed as optional --- src/withCardon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/withCardon.tsx b/src/withCardon.tsx index 794bb2d..6e276fa 100644 --- a/src/withCardon.tsx +++ b/src/withCardon.tsx @@ -58,7 +58,7 @@ export type WithCardonResult = { * } * ``` */ -export function withCardon(component: React.ComponentType

>, options: WithCardonOptions) { +export function withCardon(component: React.ComponentType

>, options?: WithCardonOptions) { var onShow: WithCardonOnShow = () => { }; function WithCardonEnchanted() {