refactor: improve typing

Signed-off-by: Varun Patil <radialapps@gmail.com>
dexie
Varun Patil 2023-10-01 08:08:10 -07:00
parent e787b1c14e
commit 37c2065129
2 changed files with 4 additions and 2 deletions

View File

@ -49,7 +49,7 @@
<script lang="ts"> <script lang="ts">
import { defineComponent } from 'vue'; import { defineComponent } from 'vue';
import { IPhoto } from '../../types'; import { IExif, IPhoto } from '../../types';
import UserConfig from '../../mixins/UserConfig'; import UserConfig from '../../mixins/UserConfig';
import NcButton from '@nextcloud/vue/dist/Components/NcButton'; import NcButton from '@nextcloud/vue/dist/Components/NcButton';
@ -186,7 +186,7 @@ export default defineComponent({
const fileid = p.fileid; const fileid = p.fileid;
// Basic EXIF fields // Basic EXIF fields
const raw = JSON.parse(JSON.stringify(exifResult)); const raw: IExif = JSON.parse(JSON.stringify(exifResult));
// Date // Date
const date = (<any>this.$refs.editDate)?.result?.(p); const date = (<any>this.$refs.editDate)?.result?.(p);

View File

@ -127,6 +127,8 @@ export interface IExif {
Make?: string; Make?: string;
Model?: string; Model?: string;
CreateDate?: string;
DateTimeOriginal?: string;
DateTimeEpoch?: number; DateTimeEpoch?: number;
OffsetTimeOriginal?: string; OffsetTimeOriginal?: string;
OffsetTime?: string; OffsetTime?: string;