Skip to content

Commit

Permalink
chore(config): improve typing of Config.featureSwitches
Browse files Browse the repository at this point in the history
Because this property is optional and marked as internal, this change
is not marked as breaking, even though it may well be for those that
use this specific property. There really should only be internal uses.
  • Loading branch information
adrianschmidt committed Feb 14, 2024
1 parent 6f4148f commit 7bda2c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion etc/lime-elements.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ export namespace Components {
export type Config = {
iconPath?: string;
defaultLocale?: string;
featureSwitches?: any;
featureSwitches?: Record<string, boolean>;
};

// @public (undocumented)
Expand Down
2 changes: 1 addition & 1 deletion src/global/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type Config = {
/**
* @internal
*/
featureSwitches?: any;
featureSwitches?: Record<string, boolean>;
};

class ConfigClass implements Config {
Expand Down

0 comments on commit 7bda2c8

Please sign in to comment.