react-image-filter
react-image-filter copied to clipboard
Add typescript support
trafficstars
A handy quick hack tips to use this in Typescript:
import ImageFilter from 'react-image-filter'in your ReactJS class/function- make a new directory and file in
/src/@types/alltypes.d.ts - Fill with
declare module 'react-image-filter' - Open your
tsconfig.json - Add
"typeRoots" : ["src/@types", "./node_modules/@types"],in yourcompilerOptions - Set
noImplicitAnyto"noImplicitAny": false, - It works!