Skip to content

Commit fde80f4

Browse files
committed
fix: lint errors
1 parent c0618e4 commit fde80f4

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

src/lib/components/archiveProject.svelte

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,14 @@
3737
import { isSmallViewport } from '$lib/stores/viewport';
3838
import { isCloud } from '$lib/system';
3939
import { regions as regionsStore } from '$lib/stores/organization';
40+
import type { Organization } from '$lib/stores/organization';
41+
import type { Plan } from '$lib/sdk/billing';
4042
4143
// props
4244
interface Props {
4345
projectsToArchive: Models.Project[];
44-
organization: Models.Organization;
45-
currentPlan: {
46-
projects: number;
47-
[key: string]: any;
48-
};
46+
organization: Organization;
47+
currentPlan: Plan;
4948
}
5049
5150
let { projectsToArchive, organization, currentPlan }: Props = $props();
@@ -131,7 +130,7 @@
131130
} catch (error) {
132131
const msg =
133132
error && typeof error === 'object' && 'message' in error
134-
? String((error as any).message)
133+
? String((error as { message: string }).message)
135134
: 'Failed to unarchive project';
136135
addNotification({ type: 'error', message: msg });
137136
}

src/lib/components/organizationUsageLimits.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
type Props = {
2020
organization: Organization;
2121
projects?: Models.Project[];
22-
members?: any[];
22+
members?: Models.Membership[];
2323
storageUsage?: number;
2424
};
2525

src/routes/(console)/organization-[organization]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
<!-- Archived Projects Section -->
248248
<ArchiveProject
249249
{projectsToArchive}
250-
organization={data.organization as any}
250+
organization={data.organization}
251251
currentPlan={$currentPlan} />
252252
</Container>
253253
<CreateOrganization bind:show={addOrganization} />

src/routes/(console)/project-[region]-[project]/settings/usage/[[invoice]]/+page.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { AggregationTeam, Invoice } from '$lib/sdk/billing';
1+
import type { AggregationTeam, Invoice, InvoiceUsage } from '$lib/sdk/billing';
22
import { accumulateUsage } from '$lib/sdk/usage';
33
import { sdk } from '$lib/stores/sdk';
44
import { Query } from '@appwrite.io/console';
@@ -46,7 +46,7 @@ export const load: PageLoad = async ({ params, parent }) => {
4646

4747
if (projectSpecificData) {
4848
const executionsResource = projectSpecificData.resources?.find?.(
49-
(r: any) => r.resourceId === 'executions'
49+
(r: InvoiceUsage) => r.resourceId === 'executions'
5050
);
5151
if (executionsResource) {
5252
usage.executionsTotal = executionsResource.value || usage.executionsTotal;

0 commit comments

Comments
 (0)