Created
January 29, 2022 08:56
-
-
Save phatnguyenuit/ee91574d2e1943ee05823e875a04ccff to your computer and use it in GitHub Desktop.
How to build a React library with TypeScript - my-react-package src/global.d.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module '*.module.css' { | |
const classes: { readonly [key: string]: string }; | |
export default classes; | |
} | |
declare module '*.module.scss' { | |
const classes: { readonly [key: string]: string }; | |
export default classes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment