@types/formdata
TypeScript icon, indicating that this package has built-in type declarations

0.10.4 • Public • Published

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

/// <reference types="node" />
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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Ciarán Ingle.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/formdata

Weekly Downloads

2,614

Version

0.10.4

License

MIT

Unpacked Size

3.48 kB

Total Files

5

Last publish

Collaborators

  • types