mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
chore(typings): Moved common typings to root dir
This commit is contained in:
1 parent
378830245d
commit
f0c5e5101e
47 files changed
+41
-46
No files matched your search
@@ -0,0 +1,22 @@
|
||||
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;
|
||||
}
|
||||
Reference in new issue
Block a user