mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-24 14:09:53 +05:30
11 lines
465 B
TypeScript
11 lines
465 B
TypeScript
import { AuthContext } from 'app/services/authFlow';
|
|
|
|
export default interface State {
|
|
resolve(context: AuthContext, payload: Record<string, any>): Promise<void> | void;
|
|
goBack(context: AuthContext): void;
|
|
// TODO: remove this method and handle next state resolution via Resolve method
|
|
reject(context: AuthContext, payload?: Record<string, any>): void;
|
|
enter(context: AuthContext): Promise<void> | void;
|
|
leave(context: AuthContext): void;
|
|
}
|