accounts-frontend/packages/app/services/authFlow/AbstractState.ts

13 lines
456 B
TypeScript
Raw Normal View History

2019-12-07 16:58:52 +05:30
/* eslint-disable @typescript-eslint/no-unused-vars */
import { AuthContext } from 'app/services/authFlow';
2019-12-07 16:58:52 +05:30
export default class AbstractState {
resolve(context: AuthContext, payload: { [key: string]: any }): any {}
goBack(context: AuthContext): any {
throw new Error('There is no way back');
}
reject(context: AuthContext, payload: { [key: string]: any }): any {}
enter(context: AuthContext): any {}
leave(context: AuthContext): any {}
}