Matthias FalkTypeScript: It’s getting unpredictable if you hit the language’s “design limits”If you hit the limits of TS’s inference capabilities it doesn’t necessarily react — as you would hope for — with a graceful degradation…6 min read·Nov 1, 2021----
Matthias FalkHi Gregory,Thanks for your comment. I think you mistook a bit what the TuplifyUnion type does: Instead of delivering all permutations of the tuple…1 min read·Oct 22, 2021----
Matthias FalkTypeScript: Constructing a Permutation typeWe create a generic type that takes a tuple type as a parameter and returns the union of all permutations of the tuple element types5 min read·Oct 22, 2021----
Matthias FalkTuple-Union conversions in TypeScriptA supplement to Array Metaprogramming in TypeScript: A fourth method to convert a union into a tuple type4 min read·Oct 6, 2021--1--1
Matthias FalkMore TypeScript quirks: double standards for propagating type informationYou might suspect that for type ObjType = {v: ..., x: ...} the two variables const v1: ObjType = {v: ..., x: ...}; and const v2 = {...v1…2 min read·Sep 28, 2021----
Matthias FalkWarning of some surprising quirks and “design limitations” in TypeScriptIf you use conditional types, be aware of some surprising limitations of TS’s inference capabilities, as e.g. encountering an undocumented…6 min read·Sep 12, 2021----
Matthias FalkExtension of Constraining TypeScript’s type parameters to “ground” instantiations: Accepting also…This is an extension of How to constrain in TypeScript type parameters to “ground” instantiations of union types or its simplification…3 min read·Aug 4, 2021----
Matthias FalkSimplification of constraining TypeScript’s type parameters to “ground” instantiationsThis is a simplification of my code suggested in How to constrain in TypeScript type parameters to “ground” instantiations of union types1 min read·Aug 4, 2021----
Matthias FalkHow to constrain in TypeScript type parameters to “ground” instantiations of union typesProblem4 min read·Aug 4, 2021--2--2
Matthias FalkSome unpleasant properties of TypeScript not mentionedType Parameter Constraints for Generics2 min read·Aug 3, 2021--1--1