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.