UNPKG

1.21 kBTypeScriptView Raw
1declare module '@ember/canary-features' {
2 /**
3 Set `EmberENV.FEATURES` in your application's `config/environment.js` file
4 to enable canary features in your application.
5
6 See the [feature flag guide](https://guides.emberjs.com/release/configuring-ember/feature-flags/)
7 for more details.
8
9 @module @ember/canary-features
10 @public
11 */
12 export const DEFAULT_FEATURES: {};
13 /**
14 The hash of enabled Canary features. Add to this, any canary features
15 before creating your application.
16
17 @class FEATURES
18 @static
19 @since 1.1.0
20 @public
21 */
22 export const FEATURES: {
23 [feature: string]: boolean;
24 };
25 /**
26 Determine whether the specified `feature` is enabled. Used by Ember's
27 build tools to exclude experimental features from beta/stable builds.
28
29 You can define the following configuration options:
30
31 * `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly
32 enabled/disabled.
33
34 @method isEnabled
35 @param {String} feature The feature to check
36 @return {Boolean}
37 @since 1.1.0
38 @public
39 */
40 export function isEnabled(feature: string): boolean;
41}