chore(http.d.ts): have http properly reexport core types

This commit is contained in:
Misko Hevery 2015-09-01 11:38:36 -07:00
parent 7c7888de4f
commit 5b8ce1e42a
2 changed files with 20 additions and 38 deletions

View File

@ -47,44 +47,27 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules')); readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules'));
createTypeDefinitionFile.typeDefinitions = [ createTypeDefinitionFile.typeDefinitions = [
{ {
id: 'angular2/angular2', id: 'angular2/angular2',
references: ['../es6-promise/es6-promise.d.ts', '../rx/rx.d.ts'], references: ['../es6-promise/es6-promise.d.ts', '../rx/rx.d.ts'],
modules: { modules: {
'angular2/angular2': { 'angular2/angular2': {namespace: 'ng', id: 'angular2/angular2'},
namespace: 'ng', 'angular2/web_worker/worker': {namespace: 'ngWorker', id: 'angular2/web_worker/worker'},
id: 'angular2/angular2' 'angular2/web_worker/ui': {namespace: 'ngUi', id: 'angular2/web_worker/ui'}
},
'angular2/web_worker/worker': {
namespace: 'ngWorker',
id: 'angular2/web_worker/worker'
},
'angular2/web_worker/ui': {
namespace: 'ngUi',
id: 'angular2/web_worker/ui'
}
}
},
{
id: 'angular2/router',
references: ['./angular2.d.ts'],
remapTypes: {Type: 'ng.Type'},
modules: {
'angular2/router': {
namespace: 'ngRouter',
id: 'angular2/router'
}
}
},
{
id: 'angular2/http',
modules: {
'angular2/http': {
namespace: 'ngHttp',
id: 'angular2/http'
}
}
} }
},
{
id: 'angular2/router',
references: ['./angular2.d.ts'],
remapTypes: {Type: 'ng.Type'},
modules: {'angular2/router': {namespace: 'ngRouter', id: 'angular2/router'}}
},
{
id: 'angular2/http',
references: ['./angular2.d.ts'],
remapTypes: {Type: 'ng.Type', Observable: 'ng.Observable', EventEmitter: 'ng.EventEmitter'},
modules: {'angular2/http': {namespace: 'ngHttp', id: 'angular2/http'}}
}
]; ];
}) })

View File

@ -43,7 +43,6 @@ export {
RequestModesOpts RequestModesOpts
} from './src/http/enums'; } from './src/http/enums';
export {URLSearchParams} from './src/http/url_search_params'; export {URLSearchParams} from './src/http/url_search_params';
export {EventEmitter, Observable} from './src/core/facade/async';
/** /**
* Provides a basic set of injectables to use the {@link Http} service in any application. * Provides a basic set of injectables to use the {@link Http} service in any application.