UNPKG

servido

Version:

Versatile services for React ⚗️

14 lines (13 loc) 596 B
import { Service, ServiceClass } from "./service"; import { ServiceContext } from "./service-context"; import { ServiceIdentifier } from "./service-types"; export declare function constructService<S extends Service, A extends any[]>(props: ConstructServiceProps<S, A>): S; export declare function constructService<S extends Service>(props: ConstructServiceProps<S, []>): S; interface ConstructServiceProps<S extends Service, A extends any[]> { /** The service */ service: ServiceClass<S, A>; context?: ServiceContext; args: A; id: ServiceIdentifier; } export {};