mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-04 13:43:34 -04:00
Add function param type
This commit is contained in:
@@ -2,6 +2,7 @@ import { Realm } from "@realm/react";
|
||||
import type { ApiObservationPhoto } from "api/types";
|
||||
import { getJWT } from "components/LoginSignUp/AuthenticationService.ts";
|
||||
import inatjs, { FileUpload } from "inaturalistjs";
|
||||
import type { RealmPhoto } from "realmModels/types";
|
||||
import * as uuid from "uuid";
|
||||
|
||||
import Photo from "./Photo";
|
||||
@@ -47,7 +48,7 @@ class ObservationPhoto extends Realm.Object {
|
||||
return localObsPhoto;
|
||||
}
|
||||
|
||||
static mapPhotoForUpload( observationID, photo ) {
|
||||
static mapPhotoForUpload( observationID, photo: RealmPhoto ) {
|
||||
const uri = Photo.getLocalPhotoUri( photo.localFilePath );
|
||||
return {
|
||||
file: new FileUpload( {
|
||||
|
||||
Reference in New Issue
Block a user