Skip to content

Commit 1547200

Browse files
committed
chore: remove reaching into jiti for types
1 parent ae87dd3 commit 1547200

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/loader.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { LoaderResult, LoaderSync } from "cosmiconfig";
22
import { createJiti } from "jiti";
3-
import type { Jiti, JitiOptions } from "jiti/lib/types.js";
43

4+
type Jiti = ReturnType<typeof createJiti>;
5+
type JitiOptions = Parameters<typeof createJiti>[1];
56
import { TypeScriptCompileError } from "./typescript-compile-error.js";
67

78
type LoaderAsync = (filepath: string, content: string) => Promise<LoaderResult>;

0 commit comments

Comments
 (0)