Misc typing improvements++
Turned on compilerOptions.strict in tsconfig.json and and did a bunch of ad hoc changes. Typed most of the implicit anys - Remove redux 4 to 5 migration - Stop prop drilling user state - Add more data types - Start typing redux state - Started using redux hooks in Dusken.tsx in favor of the connect HOC
This commit is contained in:
18 files changed
+177
-122
No files matched your search
@@ -1,5 +1,6 @@
|
||||
export interface EventType {
|
||||
start_time: string;
|
||||
end_time: string;
|
||||
content: {
|
||||
rendered: string;
|
||||
};
|
||||
@@ -10,4 +11,22 @@ export interface EventType {
|
||||
thumbnail: {
|
||||
medium_large: string;
|
||||
};
|
||||
price_regular: string;
|
||||
price_member: string;
|
||||
ticket_url: string;
|
||||
facebook_url: string;
|
||||
}
|
||||
|
||||
export interface MembershipType {
|
||||
membership_type: string;
|
||||
end_date: string;
|
||||
}
|
||||
|
||||
export interface UserType {
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
email: string;
|
||||
last_membership: MembershipType | null;
|
||||
is_volunteer: boolean;
|
||||
is_member: boolean;
|
||||
}
|
||||
Reference in new issue
Block a user