GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — Object.fromEntries: return type does not account for symbols · Issue #44405 · microsoft/TypeScript Closed Labels DuplicateAn existing issue was already createdAn existing issue was already created DescriptionTypeScript/src/lib/es2019.object.d.ts Line 8 in d2516fa
const record = Object.fromEntries([[Symbol.for("1"), "hi"]]); console.log(record[Symbol.for("1")]); error: TS2538 [ERROR]: Type 'symbol' cannot be used as an index type. console.log(record[Symbol.for("1")]); ~~~~~~~~~~~~~~~ the return type should account for objects built with symbols for keys (e.g. through a generic type or something) Reacted by Martin Johns Activity
MetadataMetadataAssigneesLabelsDuplicateAn existing issue was already createdAn existing issue was already created TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |