14 lines
342 B
TypeScript
14 lines
342 B
TypeScript
declare module '*.css' {
|
|
const content: { [className: string]: string };
|
|
export default content;
|
|
}
|
|
|
|
type SvgrComponent = React.FunctionComponent<React.SVGAttributes<SVGElement>>;
|
|
|
|
declare module '*.svg' {
|
|
const svgUrl: string;
|
|
const svgComponent: SvgrComponent;
|
|
export default svgUrl;
|
|
export { svgComponent as ReactComponent };
|
|
}
|