Skip to main content
Module

x/docxml/mod.ts>ComponentFunction

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
type alias ComponentFunction
import { type ComponentFunction } from "https://deno.land/x/docxml@3.0.1/mod.ts";

A custom function which which native components can be composed into something more easily reusable.

Type Parameters

optional
PropsGeneric extends { [key: string]: unknown; } = { [key: string]: never; }
optional
ChildGeneric extends AnyComponent | string = never
definition: (props: PropsGeneric & { children?: ChildGeneric | ChildGeneric[]; }) => AnyComponent