JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6841584
  • Score
    100M100P100Q210865F
  • License MIT

TypeScript definitions for caseless

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@types/caseless) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Installation

    npm install --save @types/caseless

    Summary

    This package contains type definitions for caseless (https://github.com/mikeal/caseless).

    Details

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

    index.d.ts

    // Type definitions for caseless 0.12
    // Project: https://github.com/mikeal/caseless
    // Definitions by: downace <https://github.com/downace>
    //                 Matt R. Wilson <https://github.com/mastermatt>
    //                 Emily Klassen <https://github.com/forivall>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.2
    
    type KeyType = string;
    type ValueType = any;
    type RawDict = object;
    
    declare function caseless(dict?: RawDict): caseless.Caseless;
    
    declare namespace caseless {
        function httpify(resp: object, headers: RawDict): Caseless;
    
        interface Caseless {
            set(name: KeyType, value: ValueType, clobber?: boolean): KeyType | false;
            set(dict: RawDict): void;
            has(name: KeyType): KeyType | false;
            get(name: KeyType): ValueType | undefined;
            swap(name: KeyType): void;
            del(name: KeyType): boolean;
        }
    
        interface Httpified {
            headers: RawDict;
            setHeader(name: KeyType, value: ValueType, clobber?: boolean): KeyType | false;
            setHeader(dict: RawDict): void;
            hasHeader(name: KeyType): KeyType | false;
            getHeader(name: KeyType): ValueType | undefined;
            removeHeader(name: KeyType): boolean;
        }
    }
    
    export = caseless;
    

    Additional Details

    • Last updated: Mon, 04 Sep 2023 15:40:38 GMT
    • Dependencies: none
    • Global values: none

    Credits

    These definitions were written by downace, Matt R. Wilson, and Emily Klassen.