gilbarbara / react-inlinesvg

An SVG loader component for ReactJS

Home Page:https://codesandbox.io/s/github/gilbarbara/react-inlinesvg/tree/main/demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Types are not exported in index

Mrtenz opened this issue · comments

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';

Feel free to submit a PR

Hey

I have exported the types in the index.d.ts declaration.
It's available in 2.0.1