Blog posts tagged with TypeScript

These are all the posts tagged with TypeScript from newest to oldest. Simple enough.

Optional Rest Parameter Overloading in TypeScript

Posted on 2021-02-04 21:13:05+00:00

You have a function with different return types based on whether or not rest parameters are passed in. Maybe it's a fringe edge case, but you never know when you'll need it. Read on to find a way to statically type this use case.

React, Redux and TypeScript: Typed Connect

Posted on 2017-03-09 00:06:38+00:00

React and Redux go well together. And thanks to a lot of hard work by the TypeScript team, it's become much easier to use the React/Redux ecosystem in a strongly-typed fashion. From discriminated unions to partial types you can practically type every part of your app. And yet typing connect from react-redux is still elusive. Read on to find out how.