bottleneckcrm/frontend/src/app.d.ts

32 lines
838 B
TypeScript

// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
interface Error {
message: string;
code?: string;
module?: string;
label?: string;
}
interface Locals {
user?: any; // You might want to replace 'any' with a more specific type for user
org?: any; // You might want to replace 'any' with a more specific type for org
org_name?: string;
org_settings?: {
default_currency?: string;
currency_symbol?: string;
default_country?: string | null;
timezone?: string;
};
profile?: {
role?: string;
is_organization_admin?: boolean;
};
}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
export {};