UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

19 lines 543 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Types = void 0; const cast_1 = require("../cast"); class Types { static toStringSlicePreserveString(v) { if (v === null || v === undefined) return null; if (Array.isArray(v)) { return v.map(item => cast_1.Cast.toString(item)); } if (typeof v === 'string') { return [v]; } return [cast_1.Cast.toString(v)]; } } exports.Types = Types; //# sourceMappingURL=types.js.map