Skip to content

Commit 8a723cc

Browse files
committed
fix: improve types
1 parent 7b80dcf commit 8a723cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import type { Arrayable, Awaitable } from '@antfu/utils'
2-
import type { ImportxOptions, SupportedLoader } from 'importx'
2+
import type { ImportxOptions as ImportxOptionsFull, SupportedLoader } from 'importx'
33

44
export const defaultExtensions = ['mts', 'cts', 'ts', 'mjs', 'cjs', 'js', 'json', '']
55

66
export type BuiltinParsers = 'require' | 'json' | 'import'
77

88
export type CustomParser<T> = (filepath: string) => Awaitable<T | undefined>
99

10+
export type ImportxOptions = Partial<Omit<ImportxOptionsFull, 'parentURL'>>
11+
1012
export interface LoadConfigSource<T = any> {
1113
files: Arrayable<string>
1214

0 commit comments

Comments
 (0)