Open jmac-slash0 opened 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.
there are no type declarations in the package, it's JS
I am using V2 doT like so:
And it works just dandy. However, I am not seeing any types. In vscode I get the following message on my import:
Am I missing something? It would be helpful to see an example with working types.