Skip to content

Commit

Permalink
refactor: declare missing model field
Browse files Browse the repository at this point in the history
  • Loading branch information
MrChocolatine committed Nov 4, 2023
1 parent 1ec28a8 commit 10a9303
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions addon/components/feature-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@ import { camelize } from '@ember/string'
import windowUtil from 'ember-feature-controls/utils/window'
import { getOwner } from '@ember/application'

/**
* @typedef {Object} FeatureFlag
* @property {string} key
* @property {boolean} isEnabled
* @property {unknown} default
* @property {unknown} reload
*/

export default class FeatureControlsComponent extends Component {
@service features
@service featureControlsStorage

/** @type {Array<FeatureFlag>} */
model = []

get featureFlags() {
return this.args.featureFlags ? this.args.featureFlags : this._featureFlags
}
Expand Down

0 comments on commit 10a9303

Please sign in to comment.