Add function param type

This commit is contained in:
Johannes Klein
2025-07-07 14:50:05 +02:00
parent 19aa9e526c
commit bbdd95ece0

View File

@@ -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( {