UNPKG

@prismicio/types-internal

Version:
7 lines (6 loc) 389 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const t = (0, tslib_1.__importStar)(require("io-ts")); const function_1 = require("./function"); exports.default = (0, function_1.withCustomError)((0, function_1.refineType)(t.string, "nonEmptyString", (s) => s.trim().length > 0), () => "The value must be a non-empty string");