[**Documentation**](../../../README)

***

[Documentation](../../../README) / [zerotal](../../README) / [index](../README) / Factory

# Type Alias: Factory\<T\>

> **Factory**\<`T`\> = (`container`) => `T` \| `Promise`\<`T`\>

Defined in: [packages/core/src/container/types.ts:24](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/container/types.ts#L24)

Builds an instance for a binding; may resolve asynchronously.

## Type Parameters

### T

`T`

## Parameters

### container

[`Container`](../classes/Container)

## Returns

`T` \| `Promise`\<`T`\>
