@thi.ng/hiccup
Version:
HTML/SVG/XML serialization of nested data structures, iterables & closures
19 lines • 563 B
TypeScript
/**
* Takes an object of RDF/XML prefixes and returns formatted string for
* the RDFa `prefix` attribute.
*
* @example
* ```ts tangle:../export/format-prefixes.ts
* import { formatPrefixes } from "@thi.ng/hiccup";
* import { foaf, xsd } from "@thi.ng/prefixes";
*
* console.log(
* formatPrefixes({ foaf, xsd })
* );
* // "foaf: http://xmlns.com/foaf/0.1/ rdf: http://www.w3.org/2001/XMLSchema#"
* ```
*
* @param prefixes -
*/
export declare const formatPrefixes: (prefixes: Record<string, string>) => string;
//# sourceMappingURL=prefix.d.ts.map