Stone.js API
    Preparing search index...

    Service options.

    This interface defines the configuration options for marking a class as a service.

    interface ServiceOptions {
        alias: string | string[];
        singleton?: boolean;
    }
    Index
    alias: string | string[]

    Alias or aliases for the service, used for identification or access. Can be a single alias or an array of aliases.

    singleton?: boolean

    Whether the service should be treated as a singleton. A singleton service will only have one instance in the container. Optional.