Skip to content

Commit

Permalink
fix: remove nonexistent type and correct typing (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
shinux authored and whxaxes committed Mar 8, 2019
1 parent 5511553 commit 58d0b32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ export interface BaseMockApplication<T, C> extends Application { // tslint:disbl
mockServiceError(service: string, methodName: string, err?: Error): T;

mockHttpclient(mockUrl: string | RegExp, mockMethod: string | string[], mockResult: {
data?: Buffer | string | JSON;
data?: string | object;
status?: number;
headers?: any;
}): Application;

mockHttpclient(mockUrl: string | RegExp, mockResult: {
data?: Buffer | string | JSON;
data?: string | obejct;

This comment has been minimized.

Copy link
@whxaxes

whxaxes Mar 12, 2019

Member

= = ... obejct should be object

status?: number;
headers?: any;
}): Application;
Expand Down Expand Up @@ -123,4 +123,4 @@ export interface EggMock extends MockMate {
}

declare const mm: EggMock;
export default mm;
export default mm;

0 comments on commit 58d0b32

Please sign in to comment.