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 --globalto correct that
import Rx = require('rx');?
import rx = require('rx'); let Rx = rx;
Rx.Observable.etc()in the original