"Reference path" and "import"

Asked

Viewed 54 times

1

/// <reference path="arquivo.ts" />

import "./arquivo.ts";

What’s the difference and when to use each in Typescript/nodejs?

It is necessary to be a file ts or I can directly import a js?

Have a class is required or I can import a file containing only functions?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.