CommunityNews

CommunityNews

Misusing TypeScript Assertion Functions for Fun and Profit

Misusing TypeScript Assertion Functions for Fun and Profit — Sympolymathesy, by Chris Krycho.
TypeScript’s assertions functions (asserts) can be mis-used to good effect when modeling unfortunate mutation-driven APIs. But “misuse” is the right word.

Read in full here:

This thread was posted by one of our members via one of our news source trackers.

0 805 0

Where Next?

Popular Frontend topics Top

First poster: KnowledgeIsPower
Hi all, With excitement we’re sharing today that Vue.js is Wikimedia Foundation’s official choice for adoption as future JavaScript fr...
/js
9 1056 4
New
First poster: bot
GitHub - eeue56/derw: An Elm-inspired language that transpiles to TypeScript. An Elm-inspired language that transpiles to TypeScript - G...
0 1135 0
New
First poster: bot
TinyBase. A tiny, reactive JavaScript library for structured state and tabular data.
2 1184 0
New
First poster: bot
Track down the JavaScript code responsible for polluting the global scope. Here’s how you can debug what JavaScript code is adding globa...
2 950 0
New
First poster: bot
Monorepos in JavaScript & TypeScript. A tutorial how to use a monorepo architecture in frontend JavaScript and TypeScript with tools...
0 724 0
New
First poster: bot
GitHub - astrodon/astrodon: Make Desktop apps with Deno :sauropod:. Make Desktop apps with Deno :sauropod:. Contribute to astrodon/astro...
0 876 0
New
CommunityNews
Introducing Signals – Preact. Signals are a way of expressing state that ensure apps stay fast regardless of how complex they get. Signa...
1 948 1
New
First poster: bot
The new wave of Javascript web frameworks. Make sense of the proliferation of new Javascript web frameworks. A deep dive into the proble...
0 752 0
New
First poster: bot
mod_wasm: run WebAssembly with Apache. mod_wasm is a new module to run WebAssembly (Wasm) modules in Apache httpd
0 617 0
New
First poster: bot
Announcing: Rescript-tea. Rescript-tea is a Rescript implementation of The Elm Architecture, an MVU (Model-View-Update) pattern for orga...
0 808 0
New

Other popular topics Top

AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
144 8502 50
New
AstonJ
Thanks to @foxtrottwist’s and @Tomas’s posts in this thread: Poll: Which code editor do you use? I bought Onivim! :nerd_face: https://on...
88 5364 32
New
AstonJ
Inspired by this post from @Carter, which languages, frameworks or other tech or tools do you think is killing it right now? :upside_down...
160 3807 49
New
AstonJ
In case anyone else is wondering why Ruby 3 doesn’t show when you do asdf list-all ruby :man_facepalming: do this first: asdf plugin-upd...
11 5382 4
New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
31 3538 15
New
AstonJ
Seems like a lot of people caught it - just wondered whether any of you did? As far as I know I didn’t, but it wouldn’t surprise me if I...
190 3839 79
New
mafinar
Crystal recently reached version 1. I had been following it for awhile but never got to really learn it. Most languages I picked up out o...
155 4360 65
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
19 3178 10
New
New
PragmaticBookshelf
Develop, deploy, and debug BEAM applications using BEAMOps: a new paradigm that focuses on scalability, fault tolerance, and owning each ...
40 2292 21
New