Files
new-phone-who-dis/phone/src/common/typings/notes.ts
T

25 lines
406 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;
}