fix(http): expose jsonpFactory for AoT compilation (#10730)

This commit is contained in:
Suguru Inatomi 2016-08-13 03:30:12 +09:00 committed by vikerman
parent 5b99b8c18a
commit 203b2ba637
2 changed files with 7 additions and 1 deletions

View File

@ -334,7 +334,10 @@ export const JSONP_PROVIDERS: any[] = [
{provide: JSONPBackend, useClass: JSONPBackend_},
];
function jsonpFactory(jsonpBackend: JSONPBackend, requestOptions: RequestOptions) {
/**
* @experimental
*/
export function jsonpFactory(jsonpBackend: JSONPBackend, requestOptions: RequestOptions): Jsonp {
return new Jsonp(jsonpBackend, requestOptions);
}

View File

@ -108,6 +108,9 @@ export declare abstract class JSONPConnection implements Connection {
abstract finished(data?: any): void;
}
/** @experimental */
export declare function jsonpFactory(jsonpBackend: JSONPBackend, requestOptions: RequestOptions): Jsonp;
/** @experimental */
export declare class JsonpModule {
}