npm.io
6.0.3 • Published 2 years ago

@types/hapi__content

Licence
MIT
Version
6.0.3
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/hapi__content

Summary

This package contains type definitions for @hapi/content (https://github.com/hapijs/subtext#readme).

Details

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

index.d.ts

/// <reference types="node" />

export interface ContentType {
    mime: string;
    charset?: string;
    boundary?: string;
}

export function type(header: string | undefined): ContentType;

export interface ContentDisposition {
    name: string;
    filename: string;
}

export function disposition(header: string | undefined): ContentDisposition;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Sebastian Malton.