Closed Kaciras closed 1 year ago
index.d.ts
does not export the plugin function.
@Kaciras I never noticed it, thanks for letting me know about this. As some changes were breaking the type system and I don't want to do it, I push a change, please verify if it works for you.
@navanshu TypeScript still shows the error:
And if I change it to named import:
import { variableCompress } from "postcss-variable-compress";
variableCompress();
The code fails at runtime with the error: TypeError: variableCompress is not a function
.
@Kaciras Can you share some more code, on how you are using it.
@Kaciras Puslished a new edit, I think this will solve the issue.
@navanshu It works, thanks.
@Kaciras can you explain why are you suggesting these changes of types?