Types are not exported in index
Mrtenz opened this issue · 2 comments
Mrtenz commented
The types defined in types.ts
aren't exported in index.tsx
. It would be nice if the types were exported there, so you can import it like
import { Props } from 'react-inlinesvg';
instead of
import { Props } from 'react-inlinesvg/lib/types';
gilbarbara commented
Feel free to submit a PR
gilbarbara commented
Hey
I have exported the types in the index.d.ts declaration.
It's available in 2.0.1