mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-23 23:21:05 +01:00
FIX: types issue during runtime
This commit is contained in:
parent
5a05883058
commit
cb7b45ab59
1
common/image-formats.ts
Normal file
1
common/image-formats.ts
Normal file
@ -0,0 +1 @@
|
||||
export const imageFormats = ["png", "jpg", "jpeg", "webp"] as const;
|
@ -3,7 +3,8 @@ import logit from "../utils/logit";
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import { ELECTRON_COMMANDS } from "../../common/electron-commands";
|
||||
import { ImageFormat, imageFormats } from "../types/types";
|
||||
import { ImageFormat } from "../types/types";
|
||||
import { imageFormats } from "../../common/image-formats";
|
||||
|
||||
interface IClipboardFileParameters {
|
||||
name: string;
|
||||
|
2
electron/types/types.d.ts
vendored
2
electron/types/types.d.ts
vendored
@ -1,3 +1,3 @@
|
||||
export const imageFormats = ["png", "jpg", "jpeg", "webp"] as const;
|
||||
import { imageFormats } from "../../common/image-formats";
|
||||
|
||||
export type ImageFormat = (typeof imageFormats)[number];
|
||||
|
Loading…
Reference in New Issue
Block a user