From 65c629ec551ca274fe524c67fd9e4d6317406ef7 Mon Sep 17 00:00:00 2001 From: dainis Date: Sat, 18 Apr 2020 02:02:54 +0300 Subject: [PATCH] http-build-query exports only single function (#43889) --- types/http-build-query/http-build-query-tests.ts | 2 +- types/http-build-query/index.d.ts | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/types/http-build-query/http-build-query-tests.ts b/types/http-build-query/http-build-query-tests.ts index cfe0b9c8eb..92c63011e4 100644 --- a/types/http-build-query/http-build-query-tests.ts +++ b/types/http-build-query/http-build-query-tests.ts @@ -1,4 +1,4 @@ -import { httpBuildQuery } from 'http-build-query'; +import httpBuildQuery from 'http-build-query'; const queryString = httpBuildQuery({ foo: 2, bar: "bar" diff --git a/types/http-build-query/index.d.ts b/types/http-build-query/index.d.ts index 54214a5eb0..386eb1e62a 100644 --- a/types/http-build-query/index.d.ts +++ b/types/http-build-query/index.d.ts @@ -3,9 +3,11 @@ // Definitions by: Alex Ungureanu // Definitions: https://github.com/DefinitelyTyped/http-build-query -export function httpBuildQuery( - queryData: {[param: string]: string|number}, - numericPrefix?: string, - argSeparator?: string, - tempKey?: string - ): string; +declare function httpBuildQuery( + queryData: { [param: string]: string | number }, + numericPrefix?: string, + argSeparator?: string, + tempKey?: string, +): string; + +export = httpBuildQuery;