"filesGlob": [
"typings/**/*.d.ts",
"typings/globals/**/*.d.ts",
"typings/modules/**/*.d.ts"
]
typing install d3
, they are external modules
d3
will not exist in scope
import * as d3 from 'd3'
import rx = require('rx')
(but import * as rx from 'rx'
should also work)
I got this:
$ typings install dt~rx
typings ERR! message Attempted to compile "rx" as an external module, but it looks like a global module. You'll need to enable the global option to continue.
so I did this:
$ typings install dt~rx --global
typings INFO reference Stripped reference "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/rx/rx-lite.d.ts" during installation from "rx" (main)
rx
└── (No dependencies)
typings install dt~rx-lite --global
to correct that
tsc
?
import Rx = require('rx');
?
import rx = require('rx');
let Rx = rx;
Rx.Observable.etc()
in the original .js
file.)