IApplication.ts
1 export const IApplicationSymbol = Symbol.for('IApplication'); 2 3 /** 4 * The main application holding everything together. 5 */ 6 export interface IApplication { 7 /** 8 * Gets a service identified by its symbol. 9 * @param identifier symbol for the service. 10 * @returns The requested service. 11 */ 12 getService<T>(identifier: symbol): T | undefined; 13 }