0.10.4 • Published 7 months ago

@types/formdata v0.10.4

Weekly downloads
323
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/formdata

Summary

This package contains type definitions for formdata (https://github.com/node-file-api/FormData).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/formdata.

index.d.ts

// Type definitions for formdata 0.10
// Project: https://github.com/node-file-api/FormData
// Definitions by: Ciarán Ingle <https://github.com/inglec-arista>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { EventEmitter } from 'events';

declare class FormData {
    nodeChunkedEncoding: boolean;

    boundary?: string | undefined;
    type?: string | undefined;

    append(key: keyof any, value: unknown): Error | undefined;
    getContentType(): string;
    serialize(intendedType?: string): EventEmitter | undefined;
    setNodeChunkedEncoding(val: boolean): void;
}

export = FormData;

Additional Details

  • Last updated: Thu, 08 Jul 2021 12:01:48 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Ciarán Ingle.