Skip to content

Commit

Permalink
chore: 🤖 make isConfigValid a simple predicate
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 13, 2020
1 parent 7871cba commit eff999c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/ui_actions/public/util/configurable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,8 @@ export interface Configurable<Config extends ConfigurableBaseConfig = Configurab

/**
* Is this config valid. Used to validate user's input before saving.
*
* @todo Rename this to `isConfig`?
*/
readonly isConfigValid: (config: Config) => config is Config;
readonly isConfigValid: (config: Config) => boolean;

/**
* `UiComponent` to be rendered when collecting configuration for this item.
Expand Down

0 comments on commit eff999c

Please sign in to comment.