olado / doT

The fastest + concise javascript template engine for nodejs and browsers. Partials, custom delimiters and more.
Other
5.01k stars 1.02k forks source link

V2 types not resolving? #306

Open jmac-slash0 opened 3 years ago

jmac-slash0 commented 3 years ago

I am using V2 doT like so:

import * as doT from 'doT';

const tmpl = doT.template("{{=foo}}{{=bar}}", {argName: ["foo", "bar"]})
tmpl({foo: 1, bar: 2}) // "12"

And it works just dandy. However, I am not seeing any types. In vscode I get the following message on my import:

Could not find a declaration file for module 'doT'. 'node_modules/dot/doT.js' implicitly has an 'any' type.ts(7016)

Am I missing something? It would be helpful to see an example with working types.

epoberezkin commented 3 years ago

there are no type declarations in the package, it's JS