Skip to content

Commit

Permalink
remove unecessary [@bs.string]
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Nov 12, 2020
1 parent 1952286 commit 2acf1b7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ReactNativeCameraRoll.re
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type getAlbumsParams;

[@bs.obj]
external getAlbumsParams:
(~assetType: [@bs.string] [ | `All | `Photos | `Videos]) => getAlbumsParams;
(~assetType: [ | `All | `Photos | `Videos]) => getAlbumsParams;

// multiple externals
[@bs.module "@react-native-community/cameraroll"]
Expand All @@ -28,7 +28,7 @@ external getPhotosParams:
(
~first: int,
~after: string=?,
~groupTypes: [@bs.string] [
~groupTypes: [
| `Album
| `All
| `Event
Expand All @@ -39,7 +39,7 @@ external getPhotosParams:
]
=?,
~groupName: string=?,
~assetType: [@bs.string] [ | `All | `Videos | `Photos]=?,
~assetType: [ | `All | `Videos | `Photos]=?,
~mimeTypes: array(string)=?,
~fromTime: float=?,
~toTime: float=?,
Expand Down Expand Up @@ -92,8 +92,7 @@ type saveOptions;

[@bs.obj]
external saveOptions:
(~_type: [@bs.string] [ | `auto | `photo | `video], ~album: string) =>
saveOptions;
(~_type: [ | `auto | `photo | `video], ~album: string) => saveOptions;

// multiple externals
[@bs.module "@react-native-community/cameraroll"]
Expand All @@ -112,7 +111,7 @@ external saveToCameraRoll: string => Js.Promise.t(string) =
// multiple externals
[@bs.module "@react-native-community/cameraroll"]
external saveToCameraRollWithType:
(string, ~_type: [@bs.string] [ | `photo | `video]) => Js.Promise.t(string) =
(string, ~_type: [ | `photo | `video]) => Js.Promise.t(string) =
"saveToCameraRoll";

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

0 comments on commit 2acf1b7

Please sign in to comment.