ts-lambda-api - v2.5.2
Preparing search index...
<internal>
BindToFluentSyntax
Interface BindToFluentSyntax<T>
interface
BindToFluentSyntax
<
T
>
{
to
(
type
:
Newable
<
T
>
)
:
BindInWhenOnFluentSyntax
<
T
>
;
toConstantValue
(
value
:
T
)
:
BindWhenOnFluentSyntax
<
T
>
;
toDynamicValue
(
builder
:
DynamicValueBuilder
<
T
>
,
)
:
BindInWhenOnFluentSyntax
<
T
>
;
toFactory
(
factory
:
T
extends
Factory
<
unknown
,
any
>
?
(
context
:
ResolutionContext
)
=>
T
<
T
>
:
never
,
)
:
BindWhenOnFluentSyntax
<
T
>
;
toProvider
(
provider
:
T
extends
Provider
<
unknown
,
any
>
?
(
context
:
ResolutionContext
)
=>
T
<
T
>
:
never
,
)
:
BindWhenOnFluentSyntax
<
T
>
;
toResolvedValue
(
factory
:
()
=>
T
)
:
BindInWhenOnFluentSyntax
<
T
>
;
toResolvedValue
<
TArgs
extends
unknown
[]
=
any
[]
>
(
factory
:
(
...
args
:
TArgs
)
=>
T
,
injectOptions
:
MapToResolvedValueInjectOptions
<
TArgs
>
,
)
:
BindInWhenOnFluentSyntax
<
T
>
;
toSelf
()
:
BindInWhenOnFluentSyntax
<
T
>
;
toService
(
service
:
ServiceIdentifier
<
T
>
)
:
void
;
}
Type Parameters
T
Index
Methods
to
to
Constant
Value
to
Dynamic
Value
to
Factory
to
Provider
to
Resolved
Value
to
Self
to
Service
Methods
to
to
(
type
:
Newable
<
T
>
)
:
BindInWhenOnFluentSyntax
<
T
>
Parameters
type
:
Newable
<
T
>
Returns
BindInWhenOnFluentSyntax
<
T
>
to
Constant
Value
toConstantValue
(
value
:
T
)
:
BindWhenOnFluentSyntax
<
T
>
Parameters
value
:
T
Returns
BindWhenOnFluentSyntax
<
T
>
to
Dynamic
Value
toDynamicValue
(
builder
:
DynamicValueBuilder
<
T
>
)
:
BindInWhenOnFluentSyntax
<
T
>
Parameters
builder
:
DynamicValueBuilder
<
T
>
Returns
BindInWhenOnFluentSyntax
<
T
>
to
Factory
toFactory
(
factory
:
T
extends
Factory
<
unknown
,
any
>
?
(
context
:
ResolutionContext
)
=>
T
<
T
>
:
never
,
)
:
BindWhenOnFluentSyntax
<
T
>
Parameters
factory
:
T
extends
Factory
<
unknown
,
any
>
?
(
context
:
ResolutionContext
)
=>
T
<
T
>
:
never
Returns
BindWhenOnFluentSyntax
<
T
>
to
Provider
toProvider
(
provider
:
T
extends
Provider
<
unknown
,
any
>
?
(
context
:
ResolutionContext
)
=>
T
<
T
>
:
never
,
)
:
BindWhenOnFluentSyntax
<
T
>
Parameters
provider
:
T
extends
Provider
<
unknown
,
any
>
?
(
context
:
ResolutionContext
)
=>
T
<
T
>
:
never
Returns
BindWhenOnFluentSyntax
<
T
>
to
Resolved
Value
toResolvedValue
(
factory
:
()
=>
T
)
:
BindInWhenOnFluentSyntax
<
T
>
Parameters
factory
:
()
=>
T
Returns
BindInWhenOnFluentSyntax
<
T
>
toResolvedValue
<
TArgs
extends
unknown
[]
=
any
[]
>
(
factory
:
(
...
args
:
TArgs
)
=>
T
,
injectOptions
:
MapToResolvedValueInjectOptions
<
TArgs
>
,
)
:
BindInWhenOnFluentSyntax
<
T
>
Type Parameters
TArgs
extends
unknown
[]
=
any
[]
Parameters
factory
:
(
...
args
:
TArgs
)
=>
T
injectOptions
:
MapToResolvedValueInjectOptions
<
TArgs
>
Returns
BindInWhenOnFluentSyntax
<
T
>
to
Self
toSelf
()
:
BindInWhenOnFluentSyntax
<
T
>
Returns
BindInWhenOnFluentSyntax
<
T
>
to
Service
toService
(
service
:
ServiceIdentifier
<
T
>
)
:
void
Parameters
service
:
ServiceIdentifier
<
T
>
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
to
to
Constant
Value
to
Dynamic
Value
to
Factory
to
Provider
to
Resolved
Value
to
Self
to
Service
ts-lambda-api - v2.5.2
Loading...