Today’s announcement by Microsoft: [...] we’ve begun work on a native port of the TypeScript compiler and tools. The native implementation will drastically improve editor startup, reduce most build times by 10×, and substantially reduce memory usage. This blog post looks at some of the details behin...
-
TypeScript @programming.dev sbv @sh.itjust.works Suggest tools for runtime JSON validation?
I'd like to validate untrusted config JSON submitted to my application against a TypeScript interface. If it's bad, I'd like to serialize a TypeScript object with default values, and suggest it as a pattern.
Last time I looked, TypeScript didn't provide runtime access to types and interfaces, so I'm not clear if that's possible without build-time tomfoolery.
I'd prefer to avoid JSON schemas if I can, but I guess that's an option too.
Are there libraries or new-ish language features that I could use?
-
TypeScript @programming.dev lysdexic @programming.dev 2ality.com A closer look at the details behind the Go port of the TypeScript compiler -
TypeScript @programming.dev lysdexic @programming.dev Node.js — Node v23.6.0 - Node.js adds support for TypeScript
nodejs.org Node.js — Node v23.6.0 (Current)Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
-
TypeScript @programming.dev db_scheehan @mastodon.social Need faster experience with TypeScript. 10x performance is here!
Need faster experience with TypeScript. 10x performance is here!
typescript @TypeScript@fosstodon.org
@typescript@programming.devhttps://devblogs.microsoft.com/typescript/typescript-native-port/
-
TypeScript @programming.dev Nemeski @lemm.ee A 10x Faster TypeScript
devblogs.microsoft.com A 10x Faster TypeScript - TypeScriptEmbarking on a native port of the existing TypeScript compiler and toolset to achieve a 10x performance speed-up.
-
TypeScript @programming.dev maxint @programming.dev How to Implement a Cosine Similarity Function in TypeScript for Vector Comparison
alexop.dev How to Implement a Cosine Similarity Function in TypeScript for Vector Comparison | alexop.devLearn how to build an efficient cosine similarity function in TypeScript for comparing vector embeddings. This step-by-step guide includes code examples, performance optimizations, and practical applications for semantic search and AI recommendation systems
-
TypeScript @programming.dev lysdexic @programming.dev 5 Inconvenient Truths about TypeScript (2023)
oida.dev 5 Inconvenient Truths about TypeScriptI’m writing books about TypeScript and I do workshops and trainings online and in-house. Every time I meet a new group of developers there are some TypeScript facts that they need to be confronted with:
-
TypeScript @programming.dev lysdexic @programming.dev Use Typescript Type-Level Recursion to Build a query string parser (2024)
matiashernandez.dev Use Typescript Type-Level Recursion to Build a query string parserRecursion is the way to create iterative algorithms in the type level.
-
TypeScript @programming.dev lysdexic @programming.dev typescript.tv Boost Your TypeScript Tests with Mutation TestingMutation testing evaluates the quality of your test suite by introducing small changes (mutations) to your code and checking if your tests can detect them. This tutorial will guide you through understanding mutation testing, setting up Stryker for TypeScript, and using it to enhance your test suite ...
-
TypeScript @programming.dev lysdexic @programming.dev www.learningtypescript.com Branded Types | Learning TypeScriptHow the concept of branded types allows describing primitives more precisely than TypeScript normally allows.
-
TypeScript @programming.dev cm0002 @lemmy.world www.infoworld.com TypeScript 5.8 reaches general availabilityMicrosoft introduces more granular checks for branches within return expressions in TypeScript 5.8, punts checking against conditional types in returns to TypeScript 5.9.
-
TypeScript @programming.dev Nemeski @lemm.ee Announcing TypeScript 5.8
devblogs.microsoft.com Announcing TypeScript 5.8 - TypeScriptToday we’re excited to announce the release of TypeScript 5.8! If you’re not familiar with TypeScript, it’s a language that builds on top of JavaScript by adding syntax for types. Writing types in our code allows us to explain intent and have other tools check our code to catch mistakes like typos, ...
-
TypeScript @programming.dev Nemeski @lemm.ee Announcing TypeScript 5.8 Beta
devblogs.microsoft.com Announcing TypeScript 5.8 Beta - TypeScriptToday we are excited to announce the availability of TypeScript 5.8 Beta. To get started using the beta, you can get it through npm with the following command: npm install -D typescript@beta Let’s take a look at what’s new in TypeScript 5.8! Checked Returns for Conditional and Indexed Access Types C...
-
TypeScript @programming.dev Nemeski @lemm.ee Announcing TypeScript 5.7
devblogs.microsoft.com Announcing TypeScript 5.7 - TypeScriptToday we excited to announce the availability of TypeScript 5.7! If you’re not familiar with TypeScript, it’s a language that builds on JavaScript by adding syntax for type declarations and annotations. This syntax can be used by the TypeScript compiler to type-check our code, and it can also be era...
-
TypeScript @programming.dev 8hob @programming.dev A Type-Safer Alternative to Type Guards in TypeScript
A trick that I'd like sharing :)
-
TypeScript @programming.dev Nemeski @lemm.ee Announcing TypeScript 5.6
devblogs.microsoft.com Announcing TypeScript 5.6 - TypeScriptToday we’re excited to announce the release of TypeScript 5.6! If you’re not familiar with TypeScript, it’s a language that builds on top of JavaScript by adding syntax for types. Types describe the shapes we expect of our variables, parameters, and functions, and the TypeScript type-checker can hel...
-
TypeScript @programming.dev Nemeski @lemm.ee Announcing TypeScript 5.6 RC
devblogs.microsoft.com Announcing TypeScript 5.6 RC - TypeScriptToday we are excited to announce the availability of the release candidate of TypeScript 5.6. To get started using the RC, you can get it through npm with the following command: npm install -D typescript@rc Here’s a quick list of what’s new in TypeScript 5.6! Disallowed Nullish and Truthy Checks Ite...
-
TypeScript @programming.dev jnkrtech @programming.dev Extensible TypeScript with Object Algebras
jnkr.tech Extensible TypeScript with Object Algebras · Programming should be enjoyableA lightweight approach to maintainable systems
cross-posted from: https://programming.dev/post/18004176
I think object algebras have huge potential to improve the way complex software is written but I've never seen them used in practice. I think one reason why is that the research paper which introduced them is pretty hard to read. This post is my attempt to change that.
I've been working on this post off and on for like two years so I'm really excited to share it with people. It is very long. There's a lot of ground to cover.
-
TypeScript @programming.dev SatouKazuma @programming.dev Looking for a guide to TypeScript for idiots
The issue? I'm the idiot. Any suggestions for a guide to JS/TS for someone trying to learn about front-end development.