Skip to content

Commit

Permalink
feat(settings): type is now a string type, add min and max prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Jan 4, 2019
1 parent e739e48 commit 9a7a703
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/settings/index.ts
Expand Up @@ -8,12 +8,16 @@ export interface InterfaceSettings {
}

export interface InterfaceSettingsItem {
type: 'boolean';
type: string;
label: string;
help?: string;
defaultValue?: any;
value?: any;
children?: InterfaceSettings;
// for any type
value?: any;
defaultValue?: any;
// when type is `range'
min?: number;
max?: number;
}

export const getSettings = (): InterfaceSettings => _settings;
Expand Down

0 comments on commit 9a7a703

Please sign in to comment.