© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Luca Del Puppo
Microsoft MVP, Google Developer Expert, GitKraken Ambassador, Senior Software Developer at NearForm and JavaScript enthusiastic.
In some cases, we need to detect if an object/type has specific properties or characteristics. Let me show you a simple case type TypeName<T> = T extends string ? "string" : T extends number ? "number" : T extends bigint ? "bigint" : ...
No responses yet.