Files
svelte-formula11/src/app.d.ts

29 lines
714 B
TypeScript

import type { User } from "$lib/schema";
import type { PocketBase, RecordModel } from "pocketbase";
// See https://svelte.dev/docs/kit/types#app.d.ts
// for information about these interfaces
declare global {
namespace App {
interface Locals {
pb: PocketBase;
user: User | undefined;
admin: boolean;
}
// interface Error {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
declare namespace svelteHTML {
interface HTMLAttributes<T> {
/** This element will be dispatched once an element with [use:lazyload] starts intersecting with the viewport. */
onLazyVisible?: (event: CustomEvent) => void;
}
}
}
export {};