Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export Rx as "rx" module for CommonJS loading #1815

Merged
merged 1 commit into from
Mar 9, 2014

Conversation

JoshRosen
Copy link
Contributor

This commit exports Rx as "rx" so that

import Rx = require("rx");

works.

The name rx matches the package name in NPM: https://www.npmjs.org/package/rx.

vvakame added a commit that referenced this pull request Mar 9, 2014
Export Rx as "rx" module for CommonJS loading
@vvakame vvakame merged commit ab967c8 into DefinitelyTyped:master Mar 9, 2014
@vvakame
Copy link
Member

vvakame commented Mar 9, 2014

@JoshRosen thanks mate!

@JoshRosen JoshRosen deleted the rx-export branch March 9, 2014 06:21
@@ -354,3 +354,7 @@ declare module Rx {

export var AsyncSubject: AsyncSubjectStatic;
}

declare module "rx" {
export = Rx

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is missing a semicolon, although it is optional it seems that all code in DefinitelyTyped adds them...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants