1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-23 22:25:14 -04:00

Convert Messages to TypeScript

(cherry picked from commit 0fdeb0566305311dcec344074b5de9e38b8d8090)
This commit is contained in:
Mark McDowall
2025-01-05 21:08:10 -08:00
committed by Bogdan
parent 8caa839d99
commit a1ed440945
9 changed files with 117 additions and 182 deletions
@@ -0,0 +1,15 @@
import ModelBase from 'App/ModelBase';
import AppSectionState from 'App/State/AppSectionState';
export type MessageType = 'error' | 'info' | 'success' | 'warning';
export interface Message extends ModelBase {
hideAfter: number;
message: string;
name: string;
type: MessageType;
}
type MessagesAppState = AppSectionState<Message>;
export default MessagesAppState;