2019-12-07 13:28:52 +02:00
|
|
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
2019-12-07 21:02:00 +02:00
|
|
|
import { AuthContext } from 'app/services/authFlow';
|
2019-12-07 13:28:52 +02:00
|
|
|
|
|
|
|
export default class AbstractState {
|
2020-05-24 02:08:24 +03:00
|
|
|
resolve(context: AuthContext, payload: Record<string, any>): Promise<void> | void {}
|
|
|
|
goBack(context: AuthContext): void {
|
|
|
|
throw new Error('There is no way back');
|
|
|
|
}
|
|
|
|
reject(context: AuthContext, payload?: Record<string, any>): void {}
|
|
|
|
enter(context: AuthContext): Promise<void> | void {}
|
|
|
|
leave(context: AuthContext): void {}
|
2019-12-07 13:28:52 +02:00
|
|
|
}
|