move all interfaces to utils.ts

This commit is contained in:
Spedon
2023-03-14 01:57:56 +08:00
parent dc32f66f2c
commit 38d1a8ab38
3 changed files with 14 additions and 12 deletions

View File

@@ -1,9 +1,4 @@
interface ImageData {
index: string
url: string
imgH: string
imgW: string
}
import { type ImageData } from './utils'
// fetch images info from JSON
const imageArrayElement = document.getElementById('images_array') as HTMLScriptElement