1"use strict"; 2Object.defineProperty(exports, "__esModule", { value: true }); 3exports.isObjectRecord = exports.isStringRecord = exports.isObjectArray = exports.isStringArray = exports.isObject = exports.isDefined = void 0; 4function isDefined(val) { 5 return val !== undefined; 6} 7exports.isDefined = isDefined; 8function isObject(value) { 9 return typeof value === 'object' && value !== null; 10} 11exports.isObject = isObject; 12function isStringArray(value) { 13 return Array.isArray(value) && value.every((v) => typeof v === 'string'); 14} 15exports.isStringArray = isStringArray; 16function isObjectArray(value) { 17 return Array.isArray(value) && value.every(isObject); 18} 19exports.isObjectArray = isObjectArray; 20function isStringRecord(value) { 21 return (typeof value === 'object' && 22 value !== null && 23 Object.keys(value).every((k) => typeof k === 'string') && 24 Object.values(value).every((v) => typeof v === 'string')); 25} 26exports.isStringRecord = isStringRecord; 27function isObjectRecord(value) { 28 return (typeof value === 'object' && 29 value !== null && 30 Object.keys(value).every((k) => typeof k === 'string') && 31 Object.values(value).every((v) => typeof v === 'object' && v !== null)); 32} 33exports.isObjectRecord = isObjectRecord; 34