@exodus/dependency-injection
Version: 0.0.0
Container
interface
Properties
get
any
getAll
any
getByType
any
register
any
registerMultiple
any
resolve
any
createContainer
variable
Type
const createContainer: (opts: ConstructorParams) => EmptyContainerSignature
__type(opts: ConstructorParams): EmptyContainer
Parameters:
opts: ConstructorParams
Returns:
EmptyContainerparseDependencyId
variable
Type
const parseDependencyId: (dependency: string) => { ... }Signature
__type(dependency: string): any
Parameters:
dependency: string
Returns:
anyProperties
id
string
optional
boolean
withType
variable
Type
const withType: (type: T) => { ... }Signature
__type(type: T): any
Parameters:
type: T
Returns:
anywrapConstant
variable
Type
const wrapConstant: ({ id, type, value, }: { ... }) => { ... }Signature
__type({ id, type, value, }: any): any
Parameters:
{ id, type, value, }: any
Returns:
anyProperties
definition
any
Entry
type
Container
interface
Methods
get
get(id: I): ReturnType
Parameters:
id: I
Returns:
ReturnTypegetAll
getAll(): InstanceById
Returns:
InstanceByIdgetByType
resolve
resolve(): void
Returns:
voidcreateContainer
function
Signature
createContainer(opts: ConstructorParams): EmptyContainer
Parameters:
opts: ConstructorParams
Returns:
EmptyContainerparseDependencyId
function
Signature
parseDependencyId(dependency: string): any
Parameters:
dependency: string
Returns:
anywithType
function
Signature
withType(type: T): any
Parameters:
type: T
Returns:
anywrapConstant
function
Signature
wrapConstant(__namedParameters: any): any
Parameters:
__namedParameters: any
Returns:
anyEntry
type
