fix(http): expose jsonpFactory for AoT compilation (#10730)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
3
tools/public_api_guard/http/index.d.ts
vendored
3
tools/public_api_guard/http/index.d.ts
vendored
@ -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 {
|
||||
}
|
||||
|
Reference in New Issue
Block a user