Skip to main content
Module

x/docxml/mod.ts>ContentTypesXml#addDefault

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

Add a default content type association for a file extension.

Parameters

extension: string
contentType: string | FileMime