diff options
Diffstat (limited to 'types/dev')
| -rw-r--r-- | types/dev/manifest.d.ts | 2 | ||||
| -rw-r--r-- | types/dev/vm.d.ts | 38 |
2 files changed, 1 insertions, 39 deletions
diff --git a/types/dev/manifest.d.ts b/types/dev/manifest.d.ts index e455208f..af475ee9 100644 --- a/types/dev/manifest.d.ts +++ b/types/dev/manifest.d.ts @@ -30,7 +30,7 @@ export type ManifestVariant = { fileName?: string; fileCopies?: string[]; excludeFiles?: string[]; - modifications: Modification[]; + modifications?: Modification[]; }; export type Modification = ( diff --git a/types/dev/vm.d.ts b/types/dev/vm.d.ts deleted file mode 100644 index 3eb0949f..00000000 --- a/types/dev/vm.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2023 Yomitan Authors - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - */ - -import type * as Translation from '../ext/translation'; - -export type PseudoChrome = { - runtime: { - getURL(path: string): string; - }; -}; - -export type PseudoFetchResponse = { - ok: boolean; - status: number; - statusText: string; - text(): Promise<string>; - json(): Promise<unknown>; -}; - -export type OptionsPresetObject = { - [key: string]: OptionsPreset; -}; - -export type OptionsPreset = Partial<Translation.FindTermsOptions>; |