Skip to content

Commit

Permalink
Merge pull request #500 from quinnturner/patch-1
Browse files Browse the repository at this point in the history
fix: replaceEsm typings
  • Loading branch information
searls committed Nov 16, 2022
2 parents 7b20b76 + 2b24cff commit ffdf3ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Expand Up @@ -304,8 +304,8 @@ export function replace(obj: {}, property: string): TestDouble<any>;
* @param {*} [defaultExportStub]
* @returns {Promise<{default?: any, [namedExport: string]: any}>}
*/
export function replaceEsm(path: string, namedExportStubs?: any, defaultExportStub?: any): Promise<void>;
export function replaceEsm(path: string): Promise<{default?: any, [namedExport: string]: any}>;
export function replaceEsm(path: string, namedExportStubs?: any, defaultExportStub?: any): Promise<void>;

/**
* Swap out real dependencies with fake one. Reference to the property will
Expand Down

0 comments on commit ffdf3ad

Please sign in to comment.