This commit is contained in:
Manav Rathi
2024-07-02 10:38:17 +05:30
parent b88d6d26a6
commit f2ea1a05c1
2 changed files with 5 additions and 6 deletions

View File

@@ -1,6 +1,5 @@
/* eslint-disable @typescript-eslint/no-floating-promises */
/* eslint-disable @typescript-eslint/array-type */
/* @ts-nocheck */
import {
NULL_LOCATION,
@@ -207,7 +206,7 @@ const parseAppleISOLocation = (isoLocation: string | undefined) => {
return location;
};
function parseCreationTime(creationTime: string) {
const parseCreationTime = (creationTime: string | undefined) => {
let dateTime = null;
if (creationTime) {
dateTime = validateAndGetCreationUnixTimeInMicroSeconds(
@@ -215,7 +214,7 @@ function parseCreationTime(creationTime: string) {
);
}
return dateTime;
}
};
/**
* Run the given FFmpeg command using a wasm FFmpeg running in a web worker.

View File

@@ -5,7 +5,7 @@ export interface Location {
export interface ParsedExtractedMetadata {
location: Location;
creationTime: number;
width: number;
height: number;
creationTime: number | null;
width: number | null;
height: number | null;
}