From 8cb0a9fc2f288ce297ee89b1c1c555ce5676bb41 Mon Sep 17 00:00:00 2001 From: Michael Ledin Date: Mon, 5 Jun 2017 11:52:27 +0300 Subject: [PATCH] Fix requested changes. --- types/superagent-no-cache/index.d.ts | 2 +- types/superagent-no-cache/superagent-no-cache-tests.ts | 2 +- types/superagent-prefix/index.d.ts | 7 ++++++- types/superagent-prefix/superagent-prefix-tests.ts | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/types/superagent-no-cache/index.d.ts b/types/superagent-no-cache/index.d.ts index 9dcfc02005..c08b41af15 100644 --- a/types/superagent-no-cache/index.d.ts +++ b/types/superagent-no-cache/index.d.ts @@ -8,4 +8,4 @@ import * as request from 'superagent'; declare const plugin: request.Plugin; -export default plugin; +export = plugin; diff --git a/types/superagent-no-cache/superagent-no-cache-tests.ts b/types/superagent-no-cache/superagent-no-cache-tests.ts index 528eb4fd40..68e4e961a2 100644 --- a/types/superagent-no-cache/superagent-no-cache-tests.ts +++ b/types/superagent-no-cache/superagent-no-cache-tests.ts @@ -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') diff --git a/types/superagent-prefix/index.d.ts b/types/superagent-prefix/index.d.ts index 238046dde9..8b7eb1d508 100644 --- a/types/superagent-prefix/index.d.ts +++ b/types/superagent-prefix/index.d.ts @@ -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; diff --git a/types/superagent-prefix/superagent-prefix-tests.ts b/types/superagent-prefix/superagent-prefix-tests.ts index 58101d8fda..01e4b52905 100644 --- a/types/superagent-prefix/superagent-prefix-tests.ts +++ b/types/superagent-prefix/superagent-prefix-tests.ts @@ -1,5 +1,5 @@ import * as request from 'superagent'; -import plugin from 'superagent-prefix'; +import * as plugin from 'superagent-prefix'; request .get('/some-url')