Skip to content

Commit 7705a8b

Browse files
committed
chore: change optional
1 parent 586b3b1 commit 7705a8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-hooks-use-modal",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"author": "shibe97",
55
"description": "A react hook which can open the modal with react-portal",
66
"repository": {

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface ModalOptions {
1313
preventScroll?: boolean;
1414
};
1515

16-
export type UseModal = (elementId: string, options: ModalOptions) => [
16+
export type UseModal = (elementId: string, options?: ModalOptions) => [
1717
ModalWrapper: React.FC<{children: React.ReactNode}>,
1818
open: () => void,
1919
close: () => void,

0 commit comments

Comments
 (0)