Type alias ServiceStateType<ServiceType>

ServiceStateType<ServiceType>: ServiceType["state"] extends Subject<infer StateType>
    ? StateType
    : never

Infers the type of the .state Subject, to which callers of the service may subscribe.

Type Parameters

  • ServiceType extends Service<any, any, any, any>

Example

`let state : ServiceStateType<typeof mathService>;`