"reference path" and "import"

1
/// <reference path="arquivo.ts" />
import "./arquivo.ts";

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

Is it necessary to be a ts file or can I directly import a js ?

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

    
asked by anonymous 25.02.2017 / 22:09

0 answers