mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Fix requested changes.
This commit is contained in:
2
types/superagent-no-cache/index.d.ts
vendored
2
types/superagent-no-cache/index.d.ts
vendored
@@ -8,4 +8,4 @@ import * as request from 'superagent';
|
||||
|
||||
declare const plugin: request.Plugin;
|
||||
|
||||
export default plugin;
|
||||
export = plugin;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as request from 'superagent';
|
||||
import plugin from 'superagent-no-cache';
|
||||
import * as plugin from 'superagent-no-cache';
|
||||
|
||||
request
|
||||
.get('/some-url')
|
||||
|
||||
7
types/superagent-prefix/index.d.ts
vendored
7
types/superagent-prefix/index.d.ts
vendored
@@ -6,4 +6,9 @@
|
||||
|
||||
import * as request from 'superagent';
|
||||
|
||||
export default function(prefix: string): request.Plugin;
|
||||
declare function plugin(prefix: string): request.Plugin;
|
||||
|
||||
declare namespace plugin {
|
||||
}
|
||||
|
||||
export = plugin;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import * as request from 'superagent';
|
||||
import plugin from 'superagent-prefix';
|
||||
import * as plugin from 'superagent-prefix';
|
||||
|
||||
request
|
||||
.get('/some-url')
|
||||
|
||||
Reference in New Issue
Block a user