npm.io
2.8.5 • Published 2 years ago

@types/jsreport-docx

Licence
MIT
Version
2.8.5
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/jsreport-docx

Summary

This package contains type definitions for jsreport-docx (https://github.com/jsreport/jsreport-docx).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsreport-docx.

index.d.ts

import { ExtensionDefinition, TemplateBase } from "jsreport-core";

declare namespace JsReportDocx {
    interface DocxTemplateModifier extends TemplateBase {
        docx?: DocxTemplate | undefined;
    }

    interface Configuration {
        preview?: {
            enabled: true;
            publicUri: string;
            showWarning: false;
        } | undefined;
    }

    interface DocxTemplate {
        templateAsetShortid?: string | undefined;
        templateAsset?: {
            content: string;
            encoding: string;
        } | undefined;
    }
}

declare module "jsreport-core" {
    interface TemplateRegistry {
        DocxTemplateModifier: JsReportDocx.DocxTemplateModifier;
    }
}

declare function JSReportDocx(cfg?: JsReportDocx.Configuration): ExtensionDefinition;

export = JSReportDocx;

Additional Details

Credits

These definitions were written by pofider.