Skip to content

Commit 720685a

Browse files
committed
Add TypeScript type definitions
This allows the package to be consumed using TypeScript without any additional configuration.
1 parent 06716fb commit 720685a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* An identity object using ES6 proxies. Useful for mocking webpack imports. For instance, you can
3+
* tell Jest to mock this object as imported
4+
* [CSS modules](https://github.com/css-modules/css-modules); then all your `className` lookups on
5+
* the imported `styles` object will be returned as-is.
6+
*/
7+
declare const idObj: Record<string, string>;
8+
9+
export = idObj

0 commit comments

Comments
 (0)