/** * A service that provides reusable functionality to components, models, and * other services. */ export interface Service { /** * If present, will be invoked by the framework to initialize the service * the first time it's needed. */ initialize?(): void | Promise; /** * If present, will be invoked by the framework when the application * instance is destroyed. */ destroy?(): void | Promise; }