6989a98d75
- Arkitektur: docs/auth/passwordless-architecture.md - Backend: iom/quixzoom-auth-service/ (FastAPI + Redis) - Webb: quixzoom-market-pages/se/login/ (QR-kod + polling) - App: iom/quixzoom-app/src/features/auth/ (push + deep links) Flöde: QR-kod → app-godkännande → webb-inloggad
16 lines
371 B
TypeScript
16 lines
371 B
TypeScript
import { Id } from '../types';
|
|
export declare const enum ActionType {
|
|
ADD = 0,
|
|
REMOVE = 1
|
|
}
|
|
export declare type State = Array<Id>;
|
|
export declare type Action = {
|
|
type: ActionType.ADD;
|
|
toastId: Id;
|
|
staleId?: Id;
|
|
} | {
|
|
type: ActionType.REMOVE;
|
|
toastId?: Id;
|
|
};
|
|
export declare function reducer(state: State, action: Action): Id[];
|