Elektrine lite

← Feed

@bitfucker@programming.dev

2026-11-08 15:36 UTC

You may need a tagged type. It is done on our code base such that currency of one type can’t be operated on currency of another type. The basic is that TAG !== TAG because even if the underlying type is the same (number), they are of different types on the type system. See also type-fest library that provide a ton more helper type like that

Replies (0)

No replies.