From b5233a85507df5edcd41d6c95e70a26347ce37a3 Mon Sep 17 00:00:00 2001 From: Oliver Viehweger Date: Thu, 17 Oct 2019 21:44:17 +0100 Subject: [PATCH] Fix TS issue with CircleSnail allowing an array of colors (#163) --- index.d.ts | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/index.d.ts b/index.d.ts index ba293c3..30c8ae0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -37,15 +37,6 @@ declare module 'react-native-progress' { */ progress?: number; - /** - * Fill color of the indicator. - * - * @type {string} - * @memberof DefaultPropTypes - * @default rgba(0, 122, 255, 1) - */ - color?: string; - /** * Color of the remaining progress. * @@ -100,6 +91,15 @@ declare module 'react-native-progress' { */ height?: number; + /** + * Fill color of the indicator. + * + * @type {string} + * @memberof DefaultPropTypes + * @default rgba(0, 122, 255, 1) + */ + color?: string; + /** * Rounding of corners, set to `0` to disable. * @@ -163,6 +163,15 @@ declare module 'react-native-progress' { */ size?: number; + /** + * Fill color of the indicator. + * + * @type {string} + * @memberof DefaultPropTypes + * @default rgba(0, 122, 255, 1) + */ + color?: string; + /** * Thickness of the inner circle. * @@ -251,6 +260,15 @@ declare module 'react-native-progress' { * @default 40 */ size?: number; + + /** + * Fill color of the indicator. + * + * @type {string} + * @memberof DefaultPropTypes + * @default rgba(0, 122, 255, 1) + */ + color?: string; } /** @@ -291,11 +309,11 @@ declare module 'react-native-progress' { /** * Color of the circle, use an array of colors for rainbow effect. * - * @type {string} + * @type {string | string[]} * @memberof CircleSnailPropTypes * @default rgba(0, 122, 255, 1) */ - color?: string; + color?: string | string[]; /** * Thickness of the circle.