@types/jsreport-scripts
TypeScript icon, indicating that this package has built-in type declarations

2.6.5 • Public • Published

Installation

npm install --save @types/jsreport-scripts

Summary

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

Details

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

index.d.ts

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

declare namespace JsReportScripts {
    interface TemplateScript {
        shortid?: string | undefined;
        name?: string | undefined;
        content?: string | undefined;
    }

    interface Configuration {
        allowedModules?: string[] | "*" | undefined;
    }

    interface ScriptsTemplate extends Template {
        scripts?: TemplateScript[] | undefined;
    }
}

declare module "jsreport-core" {
    interface TemplateRegistry {
        ScriptsTemplate: JsReportScripts.ScriptsTemplate;
    }
}

declare function JsReportScripts(cfg?: JsReportScripts.Configuration): ExtensionDefinition;

export = JsReportScripts;

Additional Details

Credits

These definitions were written by pofider.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jsreport-scripts

Weekly Downloads

701

Version

2.6.5

License

MIT

Unpacked Size

4.08 kB

Total Files

5

Last publish

Collaborators

  • types