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
{{ message }}
Repository navigation
Type of Array.prototype[Symbol.unscopables] is wrong #46616
interfaceArray<T>{/** * Returns an object whose properties have the value 'true' * when they will be absent when used in a 'with' statement. */[Symbol.unscopables](): {copyWithin: boolean;entries: boolean;fill: boolean;find: boolean;findIndex: boolean;keys: boolean;values: boolean;};}
Configuration Check
My compilation target is ES2015 and my lib is the default.
Missing / Incorrect Definition
It is an object, instead of a function that returns an object.
Activity
MartinJohns commentedon Nov 1, 2021
It being an object seems to be right, according to the MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/unscopables
What makes you think it should be a function returning an object?
Jack-Works commentedon Nov 1, 2021
The current definition in TypeScript is a function
MartinJohns commentedon Nov 1, 2021
Related: #34610
It was wrongly fixed. :-D