|
| 1 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Greg Price < [email protected]> |
| 3 | +Date: Tue, 8 Nov 2022 13:02:55 -0800 |
| 4 | +Subject: [tsflower] camera-roll: Mark statics as static |
| 5 | + |
| 6 | +Seems like TsFlower is just not propagating the `static` modifier. |
| 7 | +Should be easy to fix, then. |
| 8 | +--- |
| 9 | + .../lib/typescript/CameraRoll.js.flow | 18 +++++++++--------- |
| 10 | + 1 file changed, 9 insertions(+), 9 deletions(-) |
| 11 | + |
| 12 | +diff --git types/@react-native-camera-roll/camera-roll/lib/typescript/CameraRoll.js.flow types/@react-native-camera-roll/camera-roll/lib/typescript/CameraRoll.js.flow |
| 13 | +index 525cabed3..6f6ab12f5 100644 |
| 14 | +--- types/@react-native-camera-roll/camera-roll/lib/typescript/CameraRoll.js.flow |
| 15 | ++++ types/@react-native-camera-roll/camera-roll/lib/typescript/CameraRoll.js.flow |
| 16 | +@@ -81,27 +81,27 @@ export type Album = { |
| 17 | + }; |
| 18 | + |
| 19 | + declare export class CameraRoll { |
| 20 | +- GroupTypesOptions: { |
| 21 | ++ static GroupTypesOptions: { |
| 22 | + Album: string, |
| 23 | + All: string, |
| 24 | + Event: string, |
| 25 | + Faces: string, |
| 26 | + Library: string, |
| 27 | + PhotoStream: string, |
| 28 | + SavedPhotos: string, |
| 29 | + ... |
| 30 | + }; |
| 31 | +- AssetTypeOptions: { |
| 32 | ++ static AssetTypeOptions: { |
| 33 | + All: string, |
| 34 | + Videos: string, |
| 35 | + Photos: string, |
| 36 | + ... |
| 37 | + }; |
| 38 | +- deletePhotos(photoUris: Array<string>): void; |
| 39 | +- save(tag: string, options?: SaveToCameraRollOptions): Promise<string>; |
| 40 | +- saveToCameraRoll(tag: string, type?: 'photo' | 'video' | 'auto'): Promise<string>; |
| 41 | +- getAlbums(params?: GetAlbumsParams): Promise<Album[]>; |
| 42 | +- getParamsWithDefaults(params: GetPhotosParams): GetPhotosParams; |
| 43 | +- getPhotos(params: GetPhotosParams): Promise<PhotoIdentifiersPage>; |
| 44 | +- iosGetImageDataById(internalID: string, convertHeicImages?: boolean): Promise<PhotoIdentifier>; |
| 45 | ++ static deletePhotos(photoUris: Array<string>): void; |
| 46 | ++ static save(tag: string, options?: SaveToCameraRollOptions): Promise<string>; |
| 47 | ++ static saveToCameraRoll(tag: string, type?: 'photo' | 'video' | 'auto'): Promise<string>; |
| 48 | ++ static getAlbums(params?: GetAlbumsParams): Promise<Album[]>; |
| 49 | ++ static getParamsWithDefaults(params: GetPhotosParams): GetPhotosParams; |
| 50 | ++ static getPhotos(params: GetPhotosParams): Promise<PhotoIdentifiersPage>; |
| 51 | ++ static iosGetImageDataById(internalID: string, convertHeicImages?: boolean): Promise<PhotoIdentifier>; |
| 52 | + } |
| 53 | +-- |
| 54 | +2.32.0 |
| 55 | + |
0 commit comments