UNPKG

1.17 kBTypeScriptView Raw
1declare module '@ember/application/namespace' {
2 /**
3 @module @ember/application/namespace
4 */
5 import { findNamespace, processAllNamespaces } from '@ember/-internals/metal';
6 import EmberObject from '@ember/object';
7 /**
8 A Namespace is an object usually used to contain other objects or methods
9 such as an application or framework. Create a namespace anytime you want
10 to define one of these new containers.
11
12 # Example Usage
13
14 ```javascript
15 MyFramework = Ember.Namespace.create({
16 VERSION: '1.0.0'
17 });
18 ```
19
20 @class Namespace
21 @extends EmberObject
22 @public
23 */
24 class Namespace extends EmberObject {
25 static NAMESPACES: import('@ember/-internals/metal/lib/namespace_search').Namespace[];
26 static NAMESPACES_BY_ID: {
27 [name: string]: import('@ember/-internals/metal/lib/namespace_search').Namespace;
28 };
29 static processAll: typeof processAllNamespaces;
30 static byName: typeof findNamespace;
31 isNamespace: true;
32 init(properties: object | undefined): void;
33 toString(): string;
34 nameClasses(): void;
35 destroy(): this;
36 }
37 export default Namespace;
38}