Overview for 'evertpot'

Implementing an opaque type in typescript

Written by Evert Pot / Original link on Feb. 18, 2020

Say, you’re in a situation where you have a user type, that looks a bit as follows: export type User = { firtName: string; lastName: string; email: string; } function save(user: User) { // ... } const user = { firstName: 'Evert', lastName: 'Pot', email: '', } save(user); But, instead…

Use a:visited in your CSS stylesheet

Written by Evert Pot / Original link on Feb. 11, 2020

By default browsers will render links blue, and links that have been visited purple. This quality of life feature goes back as far as I can remember, a casual search tells me the feature existed in Mosaic. I kinda love blue links. They’re so recognizable as links. But with CSS, many people change…

Ketting v5 released

Written by Evert Pot / Original link on Nov. 22, 2019

I just released Ketting version 5. Ketting is a generic hypermedia/HATEOAS client for Javascript and Typescript, for browsers and Node.js. It’s been a while since I last blogged about this in January, so I thought it might be nice to talk about all the things that have changed since then. These are…