You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However in Typescript, I get the following error: Set is not an array type. I presume this is a problem with the lib.d.ts typings?
BTW, I also tried this on http://www.typescriptlang.org/Playground, but there I got the error: "Cannot find the name 'Set'".
Is the Playground not up to date with the latest tsc version?
The text was updated successfully, but these errors were encountered:
With Babel, I can use spread syntax on a Set. For example, the following neat trick returns the unique elements in an array:
However in Typescript, I get the following error: Set is not an array type. I presume this is a problem with the lib.d.ts typings?
BTW, I also tried this on http://www.typescriptlang.org/Playground, but there I got the error: "Cannot find the name 'Set'".
Is the Playground not up to date with the latest tsc version?
The text was updated successfully, but these errors were encountered: