flow icon indicating copy to clipboard operation
flow copied to clipboard

Missing Support for structureClone()

Open sjchoure opened this issue 3 years ago • 1 comments

Missing/Incorrect APIs

Missing API: structureClone()

Relevant Documentation

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone

Flow.org/try

Flow Error Reproduction

6: const anotherFruitBowl = structureClone(fruitBowl)
                            ^ Cannot resolve name `structureClone`. [cannot-resolve-name]

sjchoure avatar Jul 08 '22 17:07 sjchoure

for example declare function structuredClone<T>(value: T, options?: {| transfer: any[] |}): T Although it's also possible to define stuctured cloneable & transferable objects.

nifgraup avatar Mar 21 '23 12:03 nifgraup