Skip to content

Commit adfea89

Browse files
committed
added Resolver Type definition from @koshic
1 parent e3e8051 commit adfea89

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/esmock.d.ts

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
type MockMap = { [specifier: string]: any }
2+
type Resolver = (id: string, parent: string) => string
23

34
type Options = {
45
strict?: boolean | undefined,
56
purge?: boolean | undefined,
6-
isModuleNotFoundError?: boolean | undefined
7+
isModuleNotFoundError?: boolean | undefined,
8+
resolver?: Resolver | undefined
79
}
810

911
type MockFunction = {
@@ -90,5 +92,6 @@ export {
9092
strictest,
9193
type MockFunction,
9294
type MockMap,
93-
type Options
95+
type Options,
96+
type Resolver
9497
}

0 commit comments

Comments
 (0)