Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Support for structureClone() #8904

Open
sjchoure opened this issue Jul 8, 2022 · 1 comment
Open

Missing Support for structureClone() #8904

sjchoure opened this issue Jul 8, 2022 · 1 comment
Labels
Library definitions Issues or pull requests about core library definitions

Comments

@sjchoure
Copy link

sjchoure commented Jul 8, 2022

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]
@SamChou19815 SamChou19815 added the Library definitions Issues or pull requests about core library definitions label Oct 12, 2022
@nifgraup
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Library definitions Issues or pull requests about core library definitions
Projects
None yet
Development

No branches or pull requests

3 participants