Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/src/classes/Component.ts>ComponentFunction

TypeScript (component) library for building and parsing a DOCX file
Go to Latest
type alias ComponentFunction
import { type ComponentFunction } from "https://deno.land/x/docxml@5.5.3/src/classes/Component.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