UNPKG

@scaffold-ai/react-service-provider

Version:

React context-based service provider for dependency injection.

12 lines (11 loc) 292 B
/** * Represents a generic service with a unique identifier. * Best used to wrap third party libraries to provide the app * with an api for the library. */ export interface Service { /** * Unique symbol identifying the service instance. */ readonly serviceId: symbol; }