mirror of
https://github.com/lemeow125/Reactnative-notesapp.git
synced 2025-04-19 00:11:25 +08:00
67 lines
1 KiB
TypeScript
67 lines
1 KiB
TypeScript
export interface IconProps {
|
|
size: number;
|
|
color: string;
|
|
}
|
|
|
|
export interface RootDrawerParamList {
|
|
navigate: any;
|
|
}
|
|
|
|
// Redux Interfaces
|
|
export interface LoginState {
|
|
Login: { logged_in: boolean };
|
|
}
|
|
|
|
export interface LoggedInUserState {
|
|
LoggedInUser: {
|
|
value: {
|
|
email: string;
|
|
id: number;
|
|
username: string;
|
|
};
|
|
};
|
|
}
|
|
|
|
// Component Props Interfaces
|
|
|
|
export interface NoteProps {
|
|
title: string;
|
|
content: string;
|
|
id: number;
|
|
date_created: Date;
|
|
owner: string;
|
|
}
|
|
|
|
export interface IconProps {
|
|
size: number;
|
|
color: string;
|
|
}
|
|
|
|
// API Interfaces
|
|
|
|
export interface RegistrationParams {
|
|
email: string;
|
|
username: string;
|
|
password: string;
|
|
}
|
|
|
|
export interface LoginParams {
|
|
username: string;
|
|
password: string;
|
|
}
|
|
|
|
export interface ActivationParams {
|
|
uid: string;
|
|
token: string;
|
|
}
|
|
|
|
export interface AddNoteParams {
|
|
title: string;
|
|
content: string;
|
|
}
|
|
|
|
export interface UpdateNoteParams {
|
|
id: number;
|
|
title: string;
|
|
content: string;
|
|
}
|