UNPKG

@zenbase/llml

Version:

Lightweight Language Markup Language - Convert nested data structures to human-readable, XML-like markup

10 lines (7 loc) 281 B
import type { Formatters } from "../types" export const isBoolean = (v: unknown): boolean => typeof v === "boolean" export const formatBoolean = ( value: unknown, _llml: (data: unknown, formatters: Formatters) => string, _formatters: Formatters, ): string => String(value)