mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +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:
parent
1d2186a021
commit
bd511dccbb
2
types/allure-js-commons/index.d.ts
vendored
2
types/allure-js-commons/index.d.ts
vendored
@ -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
|
||||
|
||||
13
types/form-urlencoded/index.d.ts
vendored
13
types/form-urlencoded/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user