DefinitelyTyped/types/react-svg-inline/index.d.ts
Ferdy Budhidharma bc0c933415 feat(react-dependents): update to TS 2.8 (part 2 of 2) (#27744)
* feat(react-dependents): update to ts 2.8

* fix version mismatches

* remove package.json

* post merge updates

* add package.json back again
2018-08-06 06:28:42 +01:00

28 lines
1.1 KiB
TypeScript

// Type definitions for react-svg-inline 2.1
// Project: https://github.com/MoOx/react-svg-inline
// Definitions by: kiyopikko <https://github.com/kiyopikko>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
/// <reference types="react" />
declare namespace svgInline {
interface SVGInlineProps {
svg: string;
className?: string;
classSuffix?: string;
component?: React.ReactNode;
fill?: string;
cleanup?: boolean | Array<"title" | "desc" | "comment" | "defs" | "width" | "height" | "fill" | "sketchMSShapeGroup" | "sketchMSPage" | "sketchMSLayerGroup">;
cleanupExceptions?: Array<"title" | "desc" | "comment" | "defs" | "width" | "height" | "fill" | "sketchMSShapeGroup" | "sketchMSPage" | "sketchMSLayerGroup">;
width?: string;
height?: string;
accessibilityLabel?: string;
accessibilityDesc?: string;
}
type SVGInline = React.ComponentClass<SVGInlineProps>;
}
declare const svgInline: svgInline.SVGInline;
export = svgInline;