diff --git a/types/react-sketchapp/index.d.ts b/types/react-sketchapp/index.d.ts index 096a6c6da3..ae5fa357c2 100644 --- a/types/react-sketchapp/index.d.ts +++ b/types/react-sketchapp/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-sketchapp 0.13 +// Type definitions for react-sketchapp 0.14 // Project: https://github.com/airbnb/react-sketchapp // Definitions by: Rico Kahler // DomiR @@ -8,6 +8,8 @@ import * as React from 'react'; +import { CircleProps } from './lib/components/Svg/Circle'; + declare global { const context: SketchContext; } @@ -243,7 +245,7 @@ export class Text extends React.Component {} // View export interface ViewProps { name?: string; - children?: any; + children?: React.ReactChild[]; style?: Style | StyleReference; } /** View primitives */ @@ -256,7 +258,7 @@ export const StyleSheet: { * Create an optimized `StyleSheet` reference from a style object. */ create: ( - t: T + t: T, ) => { [P in keyof T]: StyleReference }; /** * Flatten an array of style objects into one aggregated object, or look up the definition for a @@ -267,7 +269,7 @@ export const StyleSheet: { | Array