@types/invariant
TypeScript icon, indicating that this package has built-in type declarations

2.2.37 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/invariant

Weekly Downloads

760,487

Version

2.2.37

License

MIT

Unpacked Size

3.55 kB

Total Files

5

Last publish

Collaborators

  • types