A 'CSS reset' for TypeScript, improving types for common JavaScript API's

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • ts-reset

    A 'CSS reset' for TypeScript, improving types for common JavaScript API's

  • Reading https://github.com/total-typescript/ts-reset/blob/main/src/e..., I'm more confused than before. The generic NonFalsy[] looks to me like it should evaluate to never[] if the entire array is false, and to T[] (the original array type, not narrowed) otherwise. But I can see that the test case demonstrates that it works. What am I missing?

  • zod

    TypeScript-first schema validation with static type inference

  • You can safely cast an `unknown` to a desired type with a runtime check from a library like Zod (https://zod.dev/). The `unknown` makes sure you don’t forget a check.

  • 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
  • salesforcecontactmapper

  • For example, how can I do this better?

    https://github.com/kusl/salesforcecontactmapper/blob/eff0b3e...

    import { Output } from "./Output";

  • JSDoc

    An API documentation generator for JavaScript.

  • > You can import types now

    When using TypeScript to avoid using TypeScript, yeah. It's not valid JSDoc: https://github.com/jsdoc/jsdoc/issues/1645

  • TypeScript

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

  • The Boolean one at least is pretty longstanding: https://github.com/microsoft/TypeScript/issues/16655

    I imagine there are a lot of edge cases to wade through before mainlining.

  • 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.

    InfluxDB 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