Skip to content

Commit 2acf1b7

Browse files
committed
remove unecessary [@bs.string]
1 parent 1952286 commit 2acf1b7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/ReactNativeCameraRoll.re

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type getAlbumsParams;
1010

1111
[@bs.obj]
1212
external getAlbumsParams:
13-
(~assetType: [@bs.string] [ | `All | `Photos | `Videos]) => getAlbumsParams;
13+
(~assetType: [ | `All | `Photos | `Videos]) => getAlbumsParams;
1414

1515
// multiple externals
1616
[@bs.module "@react-native-community/cameraroll"]
@@ -28,7 +28,7 @@ external getPhotosParams:
2828
(
2929
~first: int,
3030
~after: string=?,
31-
~groupTypes: [@bs.string] [
31+
~groupTypes: [
3232
| `Album
3333
| `All
3434
| `Event
@@ -39,7 +39,7 @@ external getPhotosParams:
3939
]
4040
=?,
4141
~groupName: string=?,
42-
~assetType: [@bs.string] [ | `All | `Videos | `Photos]=?,
42+
~assetType: [ | `All | `Videos | `Photos]=?,
4343
~mimeTypes: array(string)=?,
4444
~fromTime: float=?,
4545
~toTime: float=?,
@@ -92,8 +92,7 @@ type saveOptions;
9292

9393
[@bs.obj]
9494
external saveOptions:
95-
(~_type: [@bs.string] [ | `auto | `photo | `video], ~album: string) =>
96-
saveOptions;
95+
(~_type: [ | `auto | `photo | `video], ~album: string) => saveOptions;
9796

9897
// multiple externals
9998
[@bs.module "@react-native-community/cameraroll"]
@@ -112,7 +111,7 @@ external saveToCameraRoll: string => Js.Promise.t(string) =
112111
// multiple externals
113112
[@bs.module "@react-native-community/cameraroll"]
114113
external saveToCameraRollWithType:
115-
(string, ~_type: [@bs.string] [ | `photo | `video]) => Js.Promise.t(string) =
114+
(string, ~_type: [ | `photo | `video]) => Js.Promise.t(string) =
116115
"saveToCameraRoll";
117116

118117
[@bs.module "@react-native-community/cameraroll"]

0 commit comments

Comments
 (0)