npm.io
3.0.2 • Published 2 years ago

@types/identity-obj-proxy

Licence
MIT
Version
3.0.2
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/identity-obj-proxy

Summary

This package contains type definitions for identity-obj-proxy (https://github.com/keyanzhang/identity-obj-proxy#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/identity-obj-proxy.

index.d.ts

type IdObj = {
    readonly [Key: string]: string;
} & {
    readonly __esModule: false;
};

/**
 * An identity object using ES6 proxies. Useful for mocking webpack imports. For instance, you can
 * tell Jest to mock this object as imported
 * [CSS modules](https://github.com/css-modules/css-modules); then all your `className` lookups on
 * the imported `styles` object will be returned as-is.
 */
declare const idObj: IdObj;

export = idObj;

Additional Details

  • Last updated: Tue, 07 Nov 2023 0337 GMT
  • Dependencies: none

Credits

These definitions were written by Remco Haszing.