Skip to main content

structured-clone

Interfaces

StructuredSerializeOptions

Properties

transfer?
optional transfer?: Transferable[];

Functions

structuredClone()

Call Signature

function structuredClone<T>(value, options?): T;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone)

##### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` | `any` |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `T` |
| `options?` | [`StructuredSerializeOptions`](#structuredserializeoptions) |

##### Returns

`T`

#### Call Signature

```ts
function structuredClone<T>(value, options?): T;
```json
[MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone)

##### Type Parameters

| Type Parameter | Default type |
| ------ | ------ |
| `T` | `any` |

##### Parameters

| Parameter | Type |
| ------ | ------ |
| `value` | `T` |
| `options?` | [`StructuredSerializeOptions`](#structuredserializeoptions) |

##### Returns

`T`
Was this page helpful?