Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
atian25 committed Apr 12, 2019
1 parent 1334825 commit 0a2344a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Readable } from 'stream';
import { Socket } from 'net';
import { IncomingMessage, ServerResponse } from 'http';
import { EggLogger, EggLoggers, LoggerLevel as EggLoggerLevel, EggContextLogger } from 'egg-logger';
import { HttpClient2, RequestOptions2 as RequestOptions } from 'urllib';
import { HttpClient, RequestOptions2 as RequestOptions } from 'urllib';
import {
EggCoreBase,
FileLoaderOption,
Expand Down Expand Up @@ -37,12 +37,12 @@ declare module 'egg' {
// Remove specific property from the specific class
type RemoveSpecProp<T, P> = Pick<T, Exclude<keyof T, P>>;

interface EggHttpClient extends HttpClient2 {}
interface EggHttpClient extends HttpClient<RequestOptions> {}
interface EggHttpConstructor {
new (app: Application): EggHttpClient;
}

interface EggContextHttpClient extends HttpClient2 {}
interface EggContextHttpClient extends HttpClient<RequestOptions> {}
interface EggContextHttpClientConstructor {
new (ctx: Context): EggContextHttpClient;
}
Expand Down
2 changes: 1 addition & 1 deletion test/lib/core/httpclient.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ describe('test/lib/core/httpclient.test.js', () => {
});
});

describe.only('httpclient retry', () => {
describe('httpclient retry', () => {
let app;
before(() => {
app = utils.app('apps/httpclient-retry');
Expand Down

0 comments on commit 0a2344a

Please sign in to comment.