2.6.5 • Published 2 years ago

@types/jsreport-scripts v2.6.5

Weekly downloads
207
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for jsreport-scripts 2.6
// Project: https://github.com/jsreport/jsreport-scripts
// Definitions by: pofider <https://github.com/pofider>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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.

2.6.3

2 years ago

2.6.5

2 years ago

2.6.4

2 years ago

2.6.2

4 years ago

2.6.1

4 years ago

2.6.0

5 years ago