mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-02 22:17:39 +00:00
23 lines
404 B
TypeScript
23 lines
404 B
TypeScript
export type AlertCategory =
|
|
| 'NOTES_ADD_SUCCESS'
|
|
| 'NOTES_ADD_FAILED'
|
|
| 'NOTES_UPDATE_SUCCESS'
|
|
| 'NOTES_UPDATE_FAILED'
|
|
| 'NOTES_DELETE_SUCCESS'
|
|
| 'NOTES_DELETE_FAILED';
|
|
|
|
export interface INotesAlert {
|
|
alert: AlertCategory;
|
|
setAlert: (type: AlertCategory) => void;
|
|
}
|
|
|
|
export interface Note {
|
|
id?: number;
|
|
title: string;
|
|
content: string;
|
|
}
|
|
|
|
export interface NoteId {
|
|
id: number;
|
|
}
|