Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "unit"

Index

Type aliases

Variables

Type aliases

Unit

Unit: _Brand

Variables

Const Unit

Unit: _Brand<"unit"> = new _Brand('unit')

The Unit type exists for the cases where you want a type-safe equivalent of undefined or null. It's a concrete instance, which won't blow up on you, and you can safely use it with e.g. Result without being concerned that you'll accidentally introduce null or undefined back into your application.

Generated using TypeDoc