Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 types not resolving? #306

Open
jmac-slash0 opened this issue Jul 2, 2021 · 1 comment
Open

V2 types not resolving? #306

jmac-slash0 opened this issue Jul 2, 2021 · 1 comment

Comments

@jmac-slash0
Copy link

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
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants