Ask questionsSupport d.ts files
I have a simple example here it's a .js
file paired with a d.ts
file and deno doesn't throw any type issues where typescript does.
import lodash from './deno_modules/lodash.js'
console.log(lodash.add('2', '2'))
Typescript does throw an issue here when run within the node
runtime.
example.ts(2,24): error TS2345: Argument of type '"2"' is not assignable to parameter of type 'number'.
Answer
questions
ry
@oldrich-s I think something like that is ideal.
Can it be achieved with triple slash directives?
/// <reference path="path/to/file.d.ts" />