TypeScript has fantastic type inference capabilities, deriving the return types of functions even when quite complex. Additionally, it has the ability to create a type alias from that derived type using `ReturnType` (which just got a LOT more powerful in 4.7 because it added generics support via instantiation expressions). However, one thing that's always bothered me is that, while the type is derived from the return type, you can't then specify that the function returns that alias. I made a small feature request to add a potential solution:
Visual Studio Code
Expanded types get truncated with `...` in previews. This isn't just a VSCode display bug, but baked into the compiler. You get the same ellipsis when trying to emit the type from the compiler api. See https://github.com/microsoft/vscode/issues/94679 & https://github.com/microsoft/TypeScript/issues/28508
Appwrite - The Open Source Firebase alternative introduces iOS support . Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
Setup a modern Jamstack project using Gatsby, TypeScript, Styled Components, and Contentful!
7 projects | dev.to | 26 Feb 2022
Has the unsoundness (will explain in the post) actually become a pitfall in practice?
3 projects | reddit.com/r/typescript | 1 Jan 2022
Visual Studio Code June 2021 (v1.58)
2 projects | reddit.com/r/vscode | 8 Jul 2021
vscode feature/extension to automatically implement all interface properties in an object instance?
3 projects | reddit.com/r/vscode | 2 Feb 2021
Faster development with code snippets in Visual Studio Code
3 projects | dev.to | 21 Jul 2021