diff --git a/types/allure-js-commons/index.d.ts b/types/allure-js-commons/index.d.ts index 3ecd9aebf1..6ca08833ee 100644 --- a/types/allure-js-commons/index.d.ts +++ b/types/allure-js-commons/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for allure-js-commons 0.0 -// Project: https://github.com/allure-framework/allure-js-commons +// Project: https://github.com/allure-framework/allure-js // Definitions by: Denis Artyuhovich // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 diff --git a/types/form-urlencoded/form-urlencoded-tests.ts b/types/form-urlencoded/form-urlencoded-tests.ts index 34f598383e..86940d888e 100644 --- a/types/form-urlencoded/form-urlencoded-tests.ts +++ b/types/form-urlencoded/form-urlencoded-tests.ts @@ -1,6 +1,6 @@ -import encode, { FormEncodedOptions } from "form-urlencoded"; +import encode = require("form-urlencoded"); -const opts: FormEncodedOptions = { +const opts: encode.FormEncodedOptions = { sorted: true, skipIndex: false, ignorenull: true diff --git a/types/form-urlencoded/index.d.ts b/types/form-urlencoded/index.d.ts index d076b05227..b7d85d3f4c 100644 --- a/types/form-urlencoded/index.d.ts +++ b/types/form-urlencoded/index.d.ts @@ -3,10 +3,13 @@ // Definitions by: Antoine Lépée // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export interface FormEncodedOptions { - sorted?: boolean; - skipIndex?: boolean; - ignorenull?: boolean; +declare namespace formUrlEncoded { + interface FormEncodedOptions { + sorted?: boolean; + skipIndex?: boolean; + ignorenull?: boolean; + } } -export default function(data: any, opts?: FormEncodedOptions): string; +declare function formUrlEncoded(data: any, opts?: formUrlEncoded.FormEncodedOptions): string; +export = formUrlEncoded;