From 2acf1b759c8c6acc8e053100d17ad599e4aacc91 Mon Sep 17 00:00:00 2001 From: MoOx Date: Thu, 12 Nov 2020 08:43:40 +0100 Subject: [PATCH] remove unecessary [@bs.string] --- src/ReactNativeCameraRoll.re | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ReactNativeCameraRoll.re b/src/ReactNativeCameraRoll.re index 3e7e0ae..448767e 100644 --- a/src/ReactNativeCameraRoll.re +++ b/src/ReactNativeCameraRoll.re @@ -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"] @@ -28,7 +28,7 @@ external getPhotosParams: ( ~first: int, ~after: string=?, - ~groupTypes: [@bs.string] [ + ~groupTypes: [ | `Album | `All | `Event @@ -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=?, @@ -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"] @@ -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"]