mirror of
https://github.com/sern-handler/website
synced 2026-06-28 02:32:23 +00:00
40 lines
476 B
Markdown
40 lines
476 B
Markdown
---
|
|
editUrl: false
|
|
next: false
|
|
prev: false
|
|
title: "transient"
|
|
---
|
|
|
|
> **transient**\<`T`\>(`cb`): () => () => `T`
|
|
|
|
@__PURE__
|
|
|
|
## Type parameters
|
|
|
|
• **T**
|
|
|
|
## Parameters
|
|
|
|
• **cb**
|
|
|
|
## Returns
|
|
|
|
`Function`
|
|
|
|
### Returns
|
|
|
|
`Function`
|
|
|
|
#### Returns
|
|
|
|
`T`
|
|
|
|
## Since
|
|
|
|
2.0.0
|
|
Creates a transient object
|
|
|
|
## Source
|
|
|
|
[src/core/ioc/dependency-injection.ts:21](https://github.com/sern-handler/handler/blob/91b3768e376cfe22ec37d8ab44f4e4a4dfe8a1e8/src/core/ioc/dependency-injection.ts#L21)
|