Thanks to visit codestin.com
Credit goes to github.com

Skip to content

V2 types not resolving? #306

@jmac-slash0

Description

@jmac-slash0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions