Why doesn't TypeScript properly type Object.keys?

This page summarizes the projects mentioned and recommended in the original post on /r/typescript

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • TypeScript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • While I understand the motivation for this design, I do feel in practice it ends up being one of the biggest pain points in TS. In reality, you very often know exactly which keys will be present. Those cases require a great deal of ceremony and/or casting. If some version of the Exact types proposal were implemented, IMO it would be the biggest feature in years.

  • proposal-record-tuple

    ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!

  • I suspect considering the strong desire to maintain consistency with JavaScript, we will eventually see something that when the Record proposal passes through tc39

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Are there common bad usages of “as”?

    2 projects | /r/typescript | 30 Nov 2022
  • Future Javascript: Records and Tuples

    3 projects | /r/javascript | 21 Feb 2022
  • Typescript says object is possibly 'undefined' for an object property, even after checking/narrowing if the property exists.

    2 projects | /r/typescript | 10 Feb 2022
  • All I Want for Christmas Is These Seven TypeScript Improvements

    3 projects | news.ycombinator.com | 25 Dec 2022
  • Typescrypt: Make your life easier with decorators

    1 project | dev.to | 31 May 2024