Interface SharedServiceOptions

Cleanup and discovery metadata for a shared service.

interface SharedServiceOptions {
    dispose?: ((instance) => void | Promise<void>);
    tags?: string[];
}

Properties

Properties

dispose?: ((instance) => void | Promise<void>)

Cleanup callback invoked when the service is released.

Type declaration

    • (instance): void | Promise<void>
    • Parameters

      • instance: unknown

      Returns void | Promise<void>

tags?: string[]

Optional tags describing the service for diagnostics or tooling.