<script type="module"> import cssToTypings from 'https://cdn.jsdelivr.net/npm/css-to-typings@1.1.0/+esm' </script>
css-to-typings
npm install css-to-typings -g
Usage
css-to-typings -i stylesheet.css -o types.d.ts
Input
.red {
color: red;
}
.blue-background {
background: blue;
}
Output
export interface IShipyard {
'red': string;
'blue-background': string;
}
declare const styles: IShipyard;
export default styles