mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Update url and switch form-urlencoded to export= (#35498)
* Update url and switch form-urlencoded to export= Only the newer version uses export default. The version that DT has types for still uses export=. * Fix spacing in test
This commit is contained in:
Vendored
+1
-1
@@ -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 <https://github.com/zaqqaz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.7
|
||||
|
||||
@@ -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
|
||||
|
||||
Vendored
+8
-5
@@ -3,10 +3,13 @@
|
||||
// Definitions by: Antoine Lépée <https://github.com/alepee>
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user