Skip to content

Commit 3e0e8d3

Browse files
committed
Fixed remaining type issues
1 parent 0bcf8eb commit 3e0e8d3

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

src/env.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ declare namespace NodeJS {
1919
}
2020

2121
declare global {
22+
interface ImportMetaEnv {
23+
readonly MODE: string;
24+
readonly BASE_URL: string;
25+
readonly DEV: boolean;
26+
readonly PROD: boolean;
27+
readonly SSR: boolean;
28+
readonly [key: string]: any;
29+
}
30+
31+
interface ImportMeta {
32+
readonly env: ImportMetaEnv;
33+
}
34+
2235
interface Window {
2336
zip: {
2437
extractAllTo: (zip: string | Buffer, outputFolder: string) => Promise<void>;

test/vitest/tests/utils/utils.getDeprecatedPackageMap.ts.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import ThunderstoreMod from "../../../../src/model/ThunderstoreMod";
22
import ThunderstoreVersion from "../../../../src/model/ThunderstoreVersion";
33
import { Deprecations } from "../../../../src/utils/Deprecations";
44
import {describe, beforeEach, afterEach, test, expect, vi} from 'vitest';
5-
import { MockInstance } from '@vitest/spy';
5+
import type { MockInstance } from 'vitest';
66

77

88
// TODO: The implementation is currently intentionally broken (see the

0 commit comments

Comments
 (0)