From 7a52ddeba2a68388b544f529d2d92104420f77b0 Mon Sep 17 00:00:00 2001 From: Shipwreckt Date: Fri, 31 Oct 2025 20:02:14 +0000 Subject: Changed from static to 11ty! --- node_modules/posthtml-render/dist/index.d.ts | 67 ++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 node_modules/posthtml-render/dist/index.d.ts (limited to 'node_modules/posthtml-render/dist/index.d.ts') diff --git a/node_modules/posthtml-render/dist/index.d.ts b/node_modules/posthtml-render/dist/index.d.ts new file mode 100644 index 0000000..5c05436 --- /dev/null +++ b/node_modules/posthtml-render/dist/index.d.ts @@ -0,0 +1,67 @@ +import { NodeText, NodeTag } from 'posthtml-parser'; + +declare enum quoteStyleEnum { + Smart = 0, + Single = 1, + Double = 2 +} +declare enum closingSingleTagOptionEnum { + tag = "tag", + slash = "slash", + default = "default", + closeAs = "closeAs" +} +declare enum closingSingleTagTypeEnum { + tag = "tag", + slash = "slash", + default = "default" +} +declare type Node = NodeText | NodeTag & { + closeAs?: closingSingleTagTypeEnum; +}; +declare type Options = { + /** + * Custom single tags (selfClosing). + * + * @default [] + */ + singleTags?: Array; + /** + * Closing format for single tag. + * + * Formats: + * + * tag: `

`, slash: `
`, default: `
` + * + */ + closingSingleTag?: closingSingleTagOptionEnum; + /** + * If all attributes should be quoted. + * Otherwise attributes will be unquoted when allowed. + * + * @default true + */ + quoteAllAttributes?: boolean; + /** + * Replaces quotes in attribute values with `"e;`. + * + * @default true + */ + replaceQuote?: boolean; + /** + * Quote style + * + * 0 - Smart quotes + * + * 1 - Single quotes + * + * 2 - double quotes + * + * + * @default 2 + */ + quoteStyle?: quoteStyleEnum; +}; +declare function render(tree?: Node | Node[], options?: Options): string; + +export { Node, Options, closingSingleTagOptionEnum, closingSingleTagTypeEnum, quoteStyleEnum, render }; -- cgit v1.2.3