leodido / postcss-clean

PostCss plugin to minify your CSS with clean-css
MIT License
41 stars 8 forks source link

types #73

Open AllanOricil opened 2 months ago

AllanOricil commented 2 months ago

we cant use it in typescript

[!] (plugin rpt2) RollupError: [plugin rpt2] src/builder.ts:12:26 - error TS7016: Could not find a declaration file for module 'postcss-clean'. '/Users/allanoricil/nrg-lib/node_modules/postcss-clean/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/postcss-clean` if it exists or add a new declaration (.d.ts) file containing `declare module 'postcss-clean';`

12 import postcssClean from "postcss-clean";