doT icon indicating copy to clipboard operation
doT copied to clipboard

V2 types not resolving?

Open jmac-slash0 opened this issue 5 years ago • 1 comments

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.

jmac-slash0 avatar Jul 02 '21 05:07 jmac-slash0

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

epoberezkin avatar Aug 14 '21 09:08 epoberezkin