ReadonlyruleRule ID reported in every TransformResult.
Applies the transformation to context.sourceFile in place.
Transform context of the file.
With methodName and without transformAll, only that
method is transformed; otherwise all eligible methods are.
Result with modified: false and a reason when nothing applies.
Transforms
@Injectableservice methods fromPromise<T>toObservable<T>:asynckeyword from matching methods.Promise<T>toObservable<T>..toPromise()calls..pipe(retry(n), catchError(...))tothis.httpcalls (2 retries for post, put, patch and delete, 3 otherwise).handleError()method if none exists.Observable,throwError,retry,catchErrorandHttpErrorResponse.Methods that already return an Observable are skipped. On failure the original source text is restored; on success the original text is returned in
metadata.originalText.