/ archiveofbelonging.org / back / node_modules / @types / invariant /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]LICENSE4 years ago1.1K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[TXT]README.md4 years ago1.3Kf12eb36 documentaiton updates [كارل مبارك]
[TXT]index.d.ts4 years ago657  
[   ]package.json2 years ago1.8K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
README.md

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

// Type definitions for invariant 2.2
// Project: https://github.com/zertosh/invariant
// Definitions by: MichaelBennett <https://github.com/bennett000>
//                 dtinth <https://github.com/dtinth>
//                 Turadg Aleahmad <https://github.com/turadg>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

Credits

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

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80