astro/packages/webapi/src/lib/structuredClone.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

5 lines
223 B
TypeScript
Raw Normal View History

2022-03-07 21:37:50 +00:00
import { deserialize } from '@ungap/structured-clone/esm/deserialize.js'
import { serialize } from '@ungap/structured-clone/esm/serialize.js'
export default (any: any, options: any) => deserialize(serialize(any, options))