aykutkardas / react-icomoon

It makes it very simple to use SVG icons in your React and React-Native projects.
https://svgps.app
MIT License
216 stars 22 forks source link

TypeScript type for `IconSetItem` breaks on v2.3.x #17

Closed rohrlaf closed 3 years ago

rohrlaf commented 3 years ago

There is a faulty type declaration for IconSetItem which was introduced in #13.

declare type IconSetItem = {
    properties: {
        name: "string";
    };
    icon: {
        paths: [];
        attrs: [];
        width?: string;
    };
};

Relates to #9 and #13.