UNPKG

@frauschert/ts-guard

Version:

ts-guard is a typescript library that provides composable type guards. Its inspired by zod but focusses only on type guards and is more lightweight.

6 lines 222 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isLiteral = void 0; const isLiteral = (value) => (x) => x === value; exports.isLiteral = isLiteral; //# sourceMappingURL=isLiteral.js.map