Skip to content

Commit

Permalink
withCardon options parameter changed as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hepter committed May 5, 2021
1 parent 2ef103d commit 4eab2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/withCardon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export type WithCardonResult<T, P> = {
* }
* ```
*/
export function withCardon<P, R = {}>(component: React.ComponentType<P & WithCardonProps<R>>, options: WithCardonOptions) {
export function withCardon<P, R = {}>(component: React.ComponentType<P & WithCardonProps<R>>, options?: WithCardonOptions) {

var onShow: WithCardonOnShow = () => { };
function WithCardonEnchanted() {
Expand Down

0 comments on commit 4eab2d9

Please sign in to comment.