@terminus/ngx-tools
Version:
[![CircleCI][circle-badge]][circle-link] [![codecov][codecov-badge]][codecov-project] [![semantic-release][semantic-release-badge]][semantic-release] [![MIT License][license-image]][license-url] <br> [![NPM version][npm-version-image]][npm-url] [![Github
16 lines (15 loc) • 662 B
TypeScript
import { ClaimMap, RetryWithEscalation } from '@terminus/ngx-tools/jwt';
import { Observable } from 'rxjs';
export declare class RetryWithEscalationMock<CM = ClaimMap> extends RetryWithEscalation implements RetryWithEscalation {
tokenEscalationsRequested: string[];
escalationSuccessful: boolean;
static forTestBed(): {
provide: typeof RetryWithEscalation;
useFactory: typeof retryWithEscalationFactory;
};
retryWithEscalation(tokenName: Extract<keyof CM, string>): (source: Observable<any>) => Observable<any>;
}
/**
* Return mock
*/
export declare function retryWithEscalationFactory(): RetryWithEscalationMock<ClaimMap>;