GoogleChromeLabs / css-paint-polyfill

CSS Custom Paint / Paint Worklet polyfill with special browser optimizations.
https://googlechromelabs.github.io/css-paint-polyfill/
Apache License 2.0
740 stars 21 forks source link

Add types definition #35

Open mauriciabad opened 1 year ago

mauriciabad commented 1 year ago

I get this error when using this package in a TypeScript file

Could not find a declaration file for module 'css-paint-polyfill'. '/home/Project/node_modules/css-paint-polyfill/dist/css-paint-polyfill.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/css-paint-polyfill` if it exists or add a new declaration (.d.ts) file containing `declare module 'css-paint-polyfill';`ts(7016)

But when I try to run npm i --save-dev @types/css-paint-polyfill the package @types/css-paint-polyfill does not exist.

Could type definitions be added? Even if they are empty.