Closed johnjelinek closed 9 years ago
I suppose this could work: import https = require('https');
but TS 1.5 should support the declarations above.
However, when I add import https = require('https');
to a file and run tsun file.ts
, I get:
rotate.ts (1,24): Cannot find module 'https'.
nvm, I got import { get } from "https"
to work, but it meant I needed a new directory with its own tsd.json
and tsconfig.json
. Before I was just trying a standalone file.
Though being late very much, I think all the code above should work now
I think
import { request, get } from "https"
should work, but I get:I know the library is available, because I see output here: