mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-26 15:00:23 +05:30
14 lines
550 B
TypeScript
14 lines
550 B
TypeScript
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
import State from './State';
|
|
import { AuthContext } from 'app/services/authFlow';
|
|
|
|
export default class AbstractState implements State {
|
|
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 {}
|
|
}
|