From fde80f4c9db7065a45fe4b4b5c2fe33aa387fe44 Mon Sep 17 00:00:00 2001
From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com>
Date: Mon, 1 Sep 2025 18:27:12 +0530
Subject: [PATCH] fix: lint errors
---
src/lib/components/archiveProject.svelte | 11 +++++------
src/lib/components/organizationUsageLimits.svelte | 2 +-
.../organization-[organization]/+page.svelte | 2 +-
.../settings/usage/[[invoice]]/+page.ts | 4 ++--
4 files changed, 9 insertions(+), 10 deletions(-)
diff --git a/src/lib/components/archiveProject.svelte b/src/lib/components/archiveProject.svelte
index c97657221..42d1e6443 100644
--- a/src/lib/components/archiveProject.svelte
+++ b/src/lib/components/archiveProject.svelte
@@ -37,15 +37,14 @@
import { isSmallViewport } from '$lib/stores/viewport';
import { isCloud } from '$lib/system';
import { regions as regionsStore } from '$lib/stores/organization';
+ import type { Organization } from '$lib/stores/organization';
+ import type { Plan } from '$lib/sdk/billing';
// props
interface Props {
projectsToArchive: Models.Project[];
- organization: Models.Organization;
- currentPlan: {
- projects: number;
- [key: string]: any;
- };
+ organization: Organization;
+ currentPlan: Plan;
}
let { projectsToArchive, organization, currentPlan }: Props = $props();
@@ -131,7 +130,7 @@
} catch (error) {
const msg =
error && typeof error === 'object' && 'message' in error
- ? String((error as any).message)
+ ? String((error as { message: string }).message)
: 'Failed to unarchive project';
addNotification({ type: 'error', message: msg });
}
diff --git a/src/lib/components/organizationUsageLimits.svelte b/src/lib/components/organizationUsageLimits.svelte
index aa4348263..a60d19fe5 100644
--- a/src/lib/components/organizationUsageLimits.svelte
+++ b/src/lib/components/organizationUsageLimits.svelte
@@ -19,7 +19,7 @@
type Props = {
organization: Organization;
projects?: Models.Project[];
- members?: any[];
+ members?: Models.Membership[];
storageUsage?: number;
};
diff --git a/src/routes/(console)/organization-[organization]/+page.svelte b/src/routes/(console)/organization-[organization]/+page.svelte
index 9c1555e73..c4d94274a 100644
--- a/src/routes/(console)/organization-[organization]/+page.svelte
+++ b/src/routes/(console)/organization-[organization]/+page.svelte
@@ -247,7 +247,7 @@
diff --git a/src/routes/(console)/project-[region]-[project]/settings/usage/[[invoice]]/+page.ts b/src/routes/(console)/project-[region]-[project]/settings/usage/[[invoice]]/+page.ts
index b383fc404..e5e1ee5a6 100644
--- a/src/routes/(console)/project-[region]-[project]/settings/usage/[[invoice]]/+page.ts
+++ b/src/routes/(console)/project-[region]-[project]/settings/usage/[[invoice]]/+page.ts
@@ -1,4 +1,4 @@
-import type { AggregationTeam, Invoice } from '$lib/sdk/billing';
+import type { AggregationTeam, Invoice, InvoiceUsage } from '$lib/sdk/billing';
import { accumulateUsage } from '$lib/sdk/usage';
import { sdk } from '$lib/stores/sdk';
import { Query } from '@appwrite.io/console';
@@ -46,7 +46,7 @@ export const load: PageLoad = async ({ params, parent }) => {
if (projectSpecificData) {
const executionsResource = projectSpecificData.resources?.find?.(
- (r: any) => r.resourceId === 'executions'
+ (r: InvoiceUsage) => r.resourceId === 'executions'
);
if (executionsResource) {
usage.executionsTotal = executionsResource.value || usage.executionsTotal;