Skip to content

ServiceToken

type ServiceToken<T extends FlareService> = (...args: never[]) => T

Class reference used as the identity key for a service in the container and registration map.

The abstract construct signature ensures tokens cannot be instantiated directly by callers.

Learn: Using DI in apps

Last updated: