Merge pull request #2378 from danielsogl/patch-11

refactor(WheelSelector): add union type for theme
This commit is contained in:
Daniel Sogl 2018-03-16 16:34:08 +01:00 committed by GitHub
commit be02f835bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ export interface WheelSelectorOptions {
* Android only - theme color, 'light' or 'dark'.
* Default: light
*/
theme?: string;
theme?: 'light' | 'dark';
/**
* Whether to have the wheels 'wrap' (Android only)
@ -76,7 +76,7 @@ export interface WheelSelectorData {
*
* ...
*
* let jsonData = {
* const jsonData = {
* numbers: [
* { description: "1" },
* { description: "2" },