Skip to content

Commit

Permalink
fix: fix declaration merging error (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
whxaxes authored and dead-horse committed Aug 24, 2018
1 parent b99a9a2 commit 00fb82e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,10 @@ export interface EggMock extends MockMate {
*/
home: (homePath: string) => void;

}

// use Declaration Merging to avoid overload interface not match error
interface EggMock {
/**
* restore mock
*/
restore: () => void;
restore: () => any;
}

declare const mm: EggMock;
Expand Down

0 comments on commit 00fb82e

Please sign in to comment.