UNPKG

896 BTypeScriptView Raw
1import { BeforeEach, Errback, EvalScripts } from '@tanem/svg-injector';
2import * as React from 'react';
3interface BaseProps {
4 [key: string]: unknown;
5 afterInjection?: Errback;
6 beforeInjection?: BeforeEach;
7 evalScripts?: EvalScripts;
8 fallback?: React.ReactType;
9 httpRequestWithCredentials?: boolean;
10 loading?: React.ReactType;
11 renumerateIRIElements?: boolean;
12 src: string;
13 useRequestCache?: boolean;
14 wrapper?: 'div' | 'span' | 'svg';
15}
16declare type HTMLWrapperType = HTMLSpanElement | HTMLDivElement;
17declare type SVGWrapperType = SVGSVGElement;
18export declare type WrapperType = HTMLWrapperType | SVGWrapperType;
19export declare type Props = BaseProps & React.DetailedHTMLProps<React.HTMLAttributes<HTMLWrapperType>, HTMLWrapperType> & React.SVGProps<SVGWrapperType>;
20export interface State {
21 hasError: boolean;
22 isLoading: boolean;
23}
24export {};