Skip to content

Commit

Permalink
chore: change optional
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro08gh committed Aug 25, 2021
1 parent 586b3b1 commit 7705a8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-hooks-use-modal",
"version": "2.0.0",
"version": "2.0.1",
"author": "shibe97",
"description": "A react hook which can open the modal with react-portal",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface ModalOptions {
preventScroll?: boolean;
};

export type UseModal = (elementId: string, options: ModalOptions) => [
export type UseModal = (elementId: string, options?: ModalOptions) => [
ModalWrapper: React.FC<{children: React.ReactNode}>,
open: () => void,
close: () => void,
Expand Down

0 comments on commit 7705a8b

Please sign in to comment.