UNPKG

@jsonjoy.com/json-type

Version:

High-performance JSON Pointer implementation

15 lines (14 loc) 388 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BoolType = void 0; const AbsType_1 = require("./AbsType"); class BoolType extends AbsType_1.AbsType { constructor(schema) { super(); this.schema = schema; } toJson(value, system = this.system) { return (value ? 'true' : 'false'); } } exports.BoolType = BoolType;