mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(react-dependents): update to ts 2.8 * fix version mismatches * remove package.json * post merge updates * add package.json back again
28 lines
1.1 KiB
TypeScript
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;
|