Cloesce - v0.0.5-unstable.27
    Preparing search index...

    Variable ServiceConst

    Service: ClassDecorator = ...

    Marks a class as a Cloesce Service.

    A stub decorator used by Cloesce to identify service classes.

    On initialization, Services will call the init method if it exists. init can be async, but can accept only @Inject parameters. init must return either void or a HttpResult.

    Example:

    Service
    export class MyService {
    injectedProperty: SomeDependency;

    async init(@Inject env: WranglerEnv) {
    // perform async setup here
    }
    }