Skip to content

Commit

Permalink
Fix TS issue with CircleSnail allowing an array of colors (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovhwgr authored and oblador committed Oct 17, 2019
1 parent c79412a commit b5233a8
Showing 1 changed file with 29 additions and 11 deletions.
40 changes: 29 additions & 11 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

/**
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit b5233a8

Please sign in to comment.