---
title: "Templated"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/type-aliases/templated/"
---

# Templated

```ts
type Templated<T> = T extends readonly infer U[] ? readonly (Templated<U> | ListPlaceholder<U>)[] : T extends object ? { readonly [K in keyof T]: K extends AsWritten ? T[K] : Templated<T[K]> } : T | ValuePlaceholder;
```

Defined in: [packages/sdk/src/builder.ts:305](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/builder.ts#L305)

`T` with a template's placeholders allowed where `fill` takes them: a value for text, numbers and `true`/`false`, a list placeholder among a list's items. `type`, `schema` and `profiles` are written as they are, with no placeholder.

## Type Parameters

### T

`T`

## Since

0.2.0
