mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-07 08:26:37 -05:00
chore: fix linting in entire project
This commit is contained in:
@@ -7,26 +7,26 @@ export type GetApiAuthMe = {
|
||||
imageUrl: string;
|
||||
name: string;
|
||||
} | null;
|
||||
}
|
||||
};
|
||||
|
||||
export type ProgressItem = {
|
||||
title: string,
|
||||
githubUrl?: string,
|
||||
completion: number,
|
||||
title: string;
|
||||
githubUrl?: string;
|
||||
completion: number;
|
||||
tasks: Array<{
|
||||
status: 'completed' | 'inprogress' | 'notstarted',
|
||||
title: string,
|
||||
}>
|
||||
}
|
||||
status: 'completed' | 'inprogress' | 'notstarted';
|
||||
title: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type GetProgress = {
|
||||
donations: {
|
||||
currentCents: number,
|
||||
goalCents: number,
|
||||
},
|
||||
currentCents: number;
|
||||
goalCents: number;
|
||||
};
|
||||
completion: number;
|
||||
items: ProgressItem[];
|
||||
}
|
||||
};
|
||||
|
||||
export type ApiAuthLogin = {
|
||||
accessToken: string;
|
||||
@@ -34,11 +34,11 @@ export type ApiAuthLogin = {
|
||||
};
|
||||
|
||||
export type ApiAccountDiscordLink = {
|
||||
url: string
|
||||
url: string;
|
||||
};
|
||||
|
||||
export type ApiAccountCheckoutLink = {
|
||||
url: string
|
||||
url: string;
|
||||
};
|
||||
|
||||
export type TierItem = {
|
||||
@@ -51,12 +51,12 @@ export type TierItem = {
|
||||
perks: {
|
||||
discordRead: boolean;
|
||||
beta: boolean;
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
export type ApiAccountTiers = {
|
||||
tiers: TierItem[];
|
||||
}
|
||||
};
|
||||
|
||||
export const LoginSchema = z.object({
|
||||
username: z.string(),
|
||||
@@ -86,7 +86,7 @@ export type ApiAccountUpdateRequest = z.infer<typeof AccountUpdateSchema>;
|
||||
export const ResetPasswordSchema = z.object({
|
||||
password: z.string(),
|
||||
passwordConfirm: z.string(),
|
||||
resetToken: z.string(),
|
||||
resetToken: z.string()
|
||||
});
|
||||
export type ApiAuthResetPasswordRequest = z.infer<typeof ResetPasswordSchema>;
|
||||
|
||||
@@ -97,6 +97,6 @@ export const ForgotPasswordSchema = z.object({
|
||||
export type ApiAuthForgotPasswordRequest = z.infer<typeof ForgotPasswordSchema>;
|
||||
|
||||
export const CheckoutSchema = z.object({
|
||||
priceId: z.string(),
|
||||
priceId: z.string()
|
||||
});
|
||||
export type ApiAccountCheckoutRequest = z.infer<typeof CheckoutSchema>;
|
||||
|
||||
Reference in New Issue
Block a user