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

1.0.5 • Public • Published

Installation

npm install --save @types/es6template

Summary

This package contains type definitions for es6template (https://github.com/zalmoxisus/es6-template).

Details

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

index.d.ts

interface Default {
    render: (str: string, locals: Record<string, unknown>) => string;

    // This rule is disabled because the caller of `compile()` knows what the type of the `locals` parameter should be when
    // calling the `compile` function.
    // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
    compile: <Locals>(str: string) => (locals: Locals) => string;
    (str: string, locals: Record<string, unknown>): string;
}
declare const _default: Default;
export = _default;

Additional Details

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

Credits

These definitions were written by Nathan Bierema.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/es6template

Weekly Downloads

48

Version

1.0.5

License

MIT

Unpacked Size

3.58 kB

Total Files

5

Last publish

Collaborators

  • types