Skip to content

Commit 5b8ce1e

Browse files
committed
chore(http.d.ts): have http properly reexport core types
1 parent 7c7888d commit 5b8ce1e

File tree

2 files changed

+20
-38
lines changed

2 files changed

+20
-38
lines changed

docs/typescript-definition-package/index.js

Lines changed: 20 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -47,44 +47,27 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
4747
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules'));
4848

4949
createTypeDefinitionFile.typeDefinitions = [
50-
{
51-
id: 'angular2/angular2',
52-
references: ['../es6-promise/es6-promise.d.ts', '../rx/rx.d.ts'],
53-
modules: {
54-
'angular2/angular2': {
55-
namespace: 'ng',
56-
id: 'angular2/angular2'
57-
},
58-
'angular2/web_worker/worker': {
59-
namespace: 'ngWorker',
60-
id: 'angular2/web_worker/worker'
61-
},
62-
'angular2/web_worker/ui': {
63-
namespace: 'ngUi',
64-
id: 'angular2/web_worker/ui'
65-
}
66-
}
67-
},
68-
{
69-
id: 'angular2/router',
70-
references: ['./angular2.d.ts'],
71-
remapTypes: {Type: 'ng.Type'},
72-
modules: {
73-
'angular2/router': {
74-
namespace: 'ngRouter',
75-
id: 'angular2/router'
76-
}
77-
}
78-
},
79-
{
80-
id: 'angular2/http',
81-
modules: {
82-
'angular2/http': {
83-
namespace: 'ngHttp',
84-
id: 'angular2/http'
85-
}
86-
}
50+
{
51+
id: 'angular2/angular2',
52+
references: ['../es6-promise/es6-promise.d.ts', '../rx/rx.d.ts'],
53+
modules: {
54+
'angular2/angular2': {namespace: 'ng', id: 'angular2/angular2'},
55+
'angular2/web_worker/worker': {namespace: 'ngWorker', id: 'angular2/web_worker/worker'},
56+
'angular2/web_worker/ui': {namespace: 'ngUi', id: 'angular2/web_worker/ui'}
8757
}
58+
},
59+
{
60+
id: 'angular2/router',
61+
references: ['./angular2.d.ts'],
62+
remapTypes: {Type: 'ng.Type'},
63+
modules: {'angular2/router': {namespace: 'ngRouter', id: 'angular2/router'}}
64+
},
65+
{
66+
id: 'angular2/http',
67+
references: ['./angular2.d.ts'],
68+
remapTypes: {Type: 'ng.Type', Observable: 'ng.Observable', EventEmitter: 'ng.EventEmitter'},
69+
modules: {'angular2/http': {namespace: 'ngHttp', id: 'angular2/http'}}
70+
}
8871
];
8972
})
9073

modules/angular2/http.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export {
4343
RequestModesOpts
4444
} from './src/http/enums';
4545
export {URLSearchParams} from './src/http/url_search_params';
46-
export {EventEmitter, Observable} from './src/core/facade/async';
4746

4847
/**
4948
* Provides a basic set of injectables to use the {@link Http} service in any application.

0 commit comments

Comments
 (0)