fix(react-sketchapp): fixed tslint errors

This commit is contained in:
Sascha Zarhuber
2019-04-11 15:48:06 +02:00
parent 510ca4fddb
commit b84b43197c
23 changed files with 33 additions and 32 deletions
+1 -1
View File
@@ -331,4 +331,4 @@ export const Platform: {
};
// Svg, similar to https://github.com/react-native-community/react-native-svg
export { default as Svg } from './lib/components/Svg';
export { default as Svg, SvgProps } from './lib/components/Svg';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps, NumberProp } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
export interface ClipPathProps {
id: string;
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
export interface DefsProps {
children: React.ReactChild[] | React.ReactChild;
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps, NumberProp } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps, FontProps } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { NumberProp } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps, NumberProp } from './props';
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { NumberProp } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps as DefaultPathProps } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { NumberProp } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps } from './props';
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { NumberProp } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps, NumberProp } from './props';
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { NumberProp } from './props';
+3 -3
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { ViewProps } from '../../../index';
import Circle, { CircleProps } from './Circle';
@@ -16,7 +16,7 @@ import Polyline, { PolylineProps } from './Polyline';
import RadialGradient, { RadialGradientProps } from './RadialGradient';
import Rect, { RectProps } from './Rect';
import Stop, { StopProps } from './Stop';
import Symbol, { SymbolProps } from './Symbol';
import SvgSymbol, { SymbolProps } from './Symbol';
import Text, { TextProps } from './Text';
import TextPath, { TextPathProps } from './TextPath';
import TSpan, { TSpanProps } from './TSpan';
@@ -48,7 +48,7 @@ export default class Svg extends React.Component<SvgProps> {
static RadialGradient: new (props: RadialGradientProps) => RadialGradient;
static Rect: new (props: RectProps) => Rect;
static Stop: new (props: StopProps) => Stop;
static Symbol: new (props: SymbolProps) => Symbol;
static Symbol: new (props: SymbolProps) => SvgSymbol;
static Text: new (props: TextProps) => Text;
static TextPath: new (props: TextPathProps) => TextPath;
static TSpan: new (props: TSpanProps) => TSpan;
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
export interface SymbolProps {
id: string;
+3 -4
View File
@@ -1,9 +1,8 @@
import React from 'react';
import React = require('react');
import { TextProps } from './props';
export interface TSpanProps extends TextProps {}
import { TextProps as TSpanProps } from './props';
export { TSpanProps };
export default class TSpan extends React.Component<TSpanProps> {
getChildContext(): { isInAParentText: boolean };
}
+3 -3
View File
@@ -1,8 +1,8 @@
import React from 'react';
import React = require('react');
import { TextProps as DefaultTextProps } from './props';
import { TextProps } from './props';
export interface TextProps extends DefaultTextProps {}
export { TextProps };
export default class Text extends React.Component<TextProps> {
getChildContext(): { isInAParentText: boolean };
+3 -3
View File
@@ -1,7 +1,7 @@
import React from 'react';
import React = require('react');
import { TextPathProps as DefaultTextPathProps } from './props';
import { TextPathProps } from './props';
export interface TextPathProps extends DefaultTextPathProps {}
export { TextPathProps };
export default class TextPath extends React.Component<TextPathProps> {}
+1 -1
View File
@@ -1,4 +1,4 @@
import React from 'react';
import React = require('react');
import { PathProps, NumberProp } from './props';
+3 -1
View File
@@ -1,3 +1,5 @@
import Svg from './Svg';
import Svg, { SvgProps } from './Svg';
export { SvgProps };
export default Svg;