JSPM

  • Created
  • Published
  • Downloads 841986
  • Score
    100M100P100Q187477F
  • License MIT

TypeScript definitions for invariant

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/invariant) 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/invariant

    Summary

    This package contains type definitions for invariant (https://github.com/zertosh/invariant).

    Details

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

    index.d.ts

    declare let invariant: invariant.InvariantStatic;
    
    export = invariant;
    export as namespace invariant;
    
    declare namespace invariant {
        interface InvariantStatic {
            (testValue: false, format: string, ...extra: any[]): never;
            (testValue: any, format: string, ...extra: any[]): asserts testValue;
        }
    }
    

    Additional Details

    • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
    • Dependencies: none

    Credits

    These definitions were written by MichaelBennett, dtinth, and Turadg Aleahmad.