AnasBoulmane/container

View on GitHub
src/types/ServiceIdentifier.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Token } from "../Token";

/**
 * Unique service identifier.
 * Can be some class type, or string id, or instance of Token.
 */
export type ServiceIdentifier<T = any> = Function | Token<T> | string | { service: T };