FstructuredClone
Bun

function

structuredClone

function structuredClone<T = any>(
value: T,
options?: StructuredSerializeOptions
): T;

Referenced types