0.0.11 • Published 3 months ago

@types/deoxxa-content-type v0.0.11

Weekly downloads
1
License
MIT
Repository
github
Last release
3 months ago

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.

0.0.11

3 months ago

0.0.10

6 months ago

0.0.9

7 months ago

0.0.8

8 months ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago