Open in app
Home
Notifications
Lists
Stories

Write
Mark Slade
Mark Slade

Home

Mar 28, 2021

Deploying strongly typed REST services and clients with OpenAPI

An API that is hard to use will not be widely adopted, or can be used to build buggy final products due to integration mistakes. Learning APIs can be challenging or time-consuming for an application developer. As APIs evolve, so do their contracts. …

Typescript

8 min read

Deploying strongly typed microservices and clients with OpenAPI
Deploying strongly typed microservices and clients with OpenAPI

Mar 25, 2021

Narrowing arrow types with Array.filter and TypeScript

When dealing with heterogeneous arrays in TypeScript, I frequently want to use list.filter(...) to extract an array of all one type. However without extra effort, TypeScript will implicitly type the result of that filtering the same as the input. For example: Notice how numbers and strings are still considered…

Typescript

1 min read


Mar 25, 2021

Input validation with user defined type guards

You can read more about user defined type guards at the official documentation, but in summary they are basically awesome. If you find an urge to write someArg as someType outside of a type guard function, ask yourself if a type guard could be cleaner. Consider the following: Line…

Typescript

2 min read

Mark Slade

Mark Slade

Full stack web developer, typescript evangelist, human

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable