0.0.11 • Published 3 months ago
@types/deoxxa-content-type v0.0.11
Installation
npm install --save @types/deoxxa-content-type
Summary
This package contains type definitions for content-type (https://github.com/deoxxa/content-type).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/deoxxa-content-type.
index.d.ts
// Type definitions for content-type v0.0.1
// Project: https://github.com/deoxxa/content-type
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace ContentType {
interface MediaType {
type: string;
q?: number | undefined;
params: any;
toString(): string;
}
interface SelectOptions {
sortAvailable?: boolean | undefined;
sortAccepted?: boolean | undefined;
}
interface MediaTypeStatic {
new (s: string, p?: any): MediaType;
parseMedia(type: string): MediaType;
splitQuotedString(str: string, delimiter?: string, quote?: string): string[];
splitContentTypes(str: string): string[];
select(availableTypes: MediaType[], acceptedTypes: MediaType[], options?: SelectOptions): string;
mediaCmp(a: MediaType, b: MediaType): number;
}
}
declare module "content-type" {
var x: ContentType.MediaTypeStatic;
export = x;
}
Additional Details
- Last updated: Thu, 23 Dec 2021 23:34:29 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by DefinitelyTyped.