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

1.1.7 • Public • Published

Installation

npm install --save @types/dot

Summary

This package contains type definitions for dot (https://github.com/olado/dot).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dot.

index.d.ts

export as namespace doT;

/** Version number */
export const version: string;

/** Template settings */
export let templateSettings: TemplateSettings;

export type RenderFunction = (...args: any[]) => string;

/** Compile template */
export function template(tmpl: string, c?: TemplateSettings, def?: {}): RenderFunction;

/** For express */
export function compile(tmpl: string, def?: {}): RenderFunction;

export interface TemplateSettings {
    evaluate: RegExp;
    interpolate: RegExp;
    encode: RegExp;
    use: RegExp;
    useParams: RegExp;
    define: RegExp;
    defineParams: RegExp;
    conditional: RegExp;
    iterate: RegExp;
    varname: string;
    strip: boolean;
    append: boolean;
    selfcontained: boolean;
}

declare global {
    interface String {
        encodeHTML(): string;
    }
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by ZombieHunter.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/dot

Weekly Downloads

26,737

Version

1.1.7

License

MIT

Unpacked Size

4.12 kB

Total Files

5

Last publish

Collaborators

  • types