13 lines
575 B
JavaScript
13 lines
575 B
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
const utils_1 = require("./utils");
|
||
|
/**
|
||
|
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`](../modules/_result_.html)
|
||
|
without being concerned that you'll accidentally introduce `null` or
|
||
|
`undefined` back into your application.
|
||
|
*/
|
||
|
exports.Unit = new utils_1._Brand('unit');
|
||
|
exports.default = exports.Unit;
|
||
|
//# sourceMappingURL=unit.js.map
|