UNPKG

@prismicio/types-internal

Version:
8 lines (7 loc) 429 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DocumentId = void 0; const tslib_1 = require("tslib"); const t = (0, tslib_1.__importStar)(require("io-ts")); const function_1 = require("../validators/function"); exports.DocumentId = (0, function_1.withCustomError)((0, function_1.refineType)(t.string, "DocumentId", (s) => s.length === 16), () => "DocumentId must be a 16 character string");