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

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;
}