From 859a730c1d3e572650d4bd5e1e16916a33bd47e5 Mon Sep 17 00:00:00 2001 From: Garrett McCullough Date: Tue, 12 Mar 2019 17:59:03 -0700 Subject: [PATCH 1/3] add style and fix typo --- index.d.ts | 85 +++++++++++++++++++++++++++++------------------------- 1 file changed, 45 insertions(+), 40 deletions(-) diff --git a/index.d.ts b/index.d.ts index 3fd7685f..fd9ad587 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,47 +3,52 @@ // Definitions by: Kyle Roach // TypeScript Version: 2.2.2 -import React, { Component } from 'react' -import { ImageURISource } from 'react-native' +import React, { Component } from "react"; +import { ImageURISource, ViewStyle } from "react-native"; interface SvgUriProps { - /** - * The width of the rendered svg - */ - width?: number | string - - /** - * The height of the rendered svg - */ - height?: number | string - - /** - * Source path for the .svg file - * Expects a require('path') to the file or object with uri. - * e.g. source={require('my-path')} - * e.g. source={{ur: 'my-path'}} - */ - source?: ImageURISource - - /** - * Direct svg code to render. Similar to inline svg - */ - svgXmlData?: string - - /** - * Fill color for the svg object - */ - fill?: string - - /** - * Invoked when load completes successfully. - */ - onLoad?: Function - - /** - * Fill the entire svg element with same color - */ - fillAll?: boolean + /** + * The width of the rendered svg + */ + width?: number | string; + + /** + * The height of the rendered svg + */ + height?: number | string; + + /** + * Source path for the .svg file + * Expects a require('path') to the file or object with uri. + * e.g. source={require('my-path')} + * e.g. source={{uri: 'my-path'}} + */ + source?: ImageURISource; + + /** + * Direct svg code to render. Similar to inline svg + */ + svgXmlData?: string; + + /** + * Fill color for the svg object + */ + fill?: string; + + /** + * Invoked when load completes successfully. + */ + onLoad?: Function; + + /** + * Fill the entire svg element with same color + */ + fillAll?: boolean; + + /** + * Style for the View that wraps the SVG + */ + style?: ViewStyle; } -export default class SvgUri extends Component { } +export default class SvgUri extends Component {} From 75a011b9db5205dbe19a157be4220f6f7f0cb94e Mon Sep 17 00:00:00 2001 From: Garrett McCullough Date: Tue, 12 Mar 2019 18:02:05 -0700 Subject: [PATCH 2/3] Revert spacing changes --- index.d.ts | 88 +++++++++++++++++++++++++++--------------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/index.d.ts b/index.d.ts index fd9ad587..45ffaabc 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,52 +3,52 @@ // Definitions by: Kyle Roach // TypeScript Version: 2.2.2 -import React, { Component } from "react"; -import { ImageURISource, ViewStyle } from "react-native"; +import React, { Component } from 'react'; +import { ImageURISource, ViewStyle } from 'react-native'; interface SvgUriProps { - /** - * The width of the rendered svg - */ - width?: number | string; - - /** - * The height of the rendered svg - */ - height?: number | string; - - /** - * Source path for the .svg file - * Expects a require('path') to the file or object with uri. - * e.g. source={require('my-path')} - * e.g. source={{uri: 'my-path'}} - */ - source?: ImageURISource; - - /** - * Direct svg code to render. Similar to inline svg - */ - svgXmlData?: string; - - /** - * Fill color for the svg object - */ - fill?: string; - - /** - * Invoked when load completes successfully. - */ - onLoad?: Function; - - /** - * Fill the entire svg element with same color - */ - fillAll?: boolean; - - /** - * Style for the View that wraps the SVG - */ - style?: ViewStyle; + /** + * The width of the rendered svg + */ + width?: number | string; + + /** + * The height of the rendered svg + */ + height?: number | string; + + /** + * Source path for the .svg file + * Expects a require('path') to the file or object with uri. + * e.g. source={require('my-path')} + * e.g. source={{uri: 'my-path'}} + */ + source?: ImageURISource; + + /** + * Direct svg code to render. Similar to inline svg + */ + svgXmlData?: string; + + /** + * Fill color for the svg object + */ + fill?: string; + + /** + * Invoked when load completes successfully. + */ + onLoad?: Function; + + /** + * Fill the entire svg element with same color + */ + fillAll?: boolean; + + /** + * Style for the View that wraps the SVG + */ + style?: ViewStyle; } export default class SvgUri extends Component {} From 40a231528607003324cf67960d5b8d4367187a6a Mon Sep 17 00:00:00 2001 From: Garrett McCullough Date: Tue, 12 Mar 2019 18:03:10 -0700 Subject: [PATCH 3/3] Revert semi-colon use --- index.d.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/index.d.ts b/index.d.ts index 45ffaabc..994507fa 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,19 +3,19 @@ // Definitions by: Kyle Roach // TypeScript Version: 2.2.2 -import React, { Component } from 'react'; -import { ImageURISource, ViewStyle } from 'react-native'; +import React, { Component } from 'react' +import { ImageURISource, ViewStyle } from 'react-native' interface SvgUriProps { /** * The width of the rendered svg */ - width?: number | string; + width?: number | string /** * The height of the rendered svg */ - height?: number | string; + height?: number | string /** * Source path for the .svg file @@ -23,32 +23,32 @@ interface SvgUriProps { * e.g. source={require('my-path')} * e.g. source={{uri: 'my-path'}} */ - source?: ImageURISource; + source?: ImageURISource /** * Direct svg code to render. Similar to inline svg */ - svgXmlData?: string; + svgXmlData?: string /** * Fill color for the svg object */ - fill?: string; + fill?: string /** * Invoked when load completes successfully. */ - onLoad?: Function; + onLoad?: Function /** * Fill the entire svg element with same color */ - fillAll?: boolean; + fillAll?: boolean /** * Style for the View that wraps the SVG */ - style?: ViewStyle; + style?: ViewStyle } -export default class SvgUri extends Component {} +export default class SvgUri extends Component { }