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

3.0.2 • Public • Published

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 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Remco Haszing.

/@types/identity-obj-proxy/

    Package Sidebar

    Install

    npm i @types/identity-obj-proxy

    Weekly Downloads

    30,449

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    3.53 kB

    Total Files

    5

    Last publish

    Collaborators

    • types