[LatteBun](../wiki/modules) / [src/template](../wiki/src.template) / convertToDataChunk

# Function: convertToDataChunk()

```ts
function convertToDataChunk(data): Promise<DataChunk>;
```

Defined in: [src/template.ts:94](https://github.com/IsCoffeeTho/lattebun/blob/8382ec8f32febfc92c68f7997028a277c41970a1/src/template.ts#L94)

## Parameters

### data

[`templateBakeable`](../wiki/src.LatteBun.LatteBun.TypeAlias.templateBakeable)

## Returns

`Promise`\<[`DataChunk`](../wiki/src.LatteBun.LatteBun.TypeAlias.DataChunk)\>
