We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1stG
JounQin
Learn more about funding links in repositories.
Report abuse
1 parent 866f32f commit 112d08fCopy full SHA for 112d08f
src/index.ts
@@ -26,7 +26,7 @@ const defaultExtensions = [
26
27
export const interfaceVersion = 2
28
29
-export interface TsResolverOptions {
+export type TsResolverOptions = SyncOpts & {
30
alwaysTryTypes?: boolean
31
/**
32
* @deprecated use `project` instead
@@ -76,6 +76,7 @@ export function resolve(
76
let foundNodePath: string | null | undefined
77
try {
78
foundNodePath = tsResolve(mappedPath ?? source, {
79
+ ...options,
80
extensions: options.extensions ?? defaultExtensions,
81
basedir: path.dirname(path.resolve(file)),
82
packageFilter: options.packageFilter ?? packageFilterDefault,
0 commit comments