floter.design/src/ambient.d.ts
2026-01-07 19:58:41 +13:00

12 lines
No EOL
406 B
TypeScript

// Squelch warnings of image imports from your assets dir
declare module '$lib/assets/*' {
const meta
export default meta
}
// Svelte 5 runes - compiler macros
declare const $props: <T = {}>() => T;
declare const $state: <T>(initial: T) => T;
declare const $derived: <T>(fn: () => T) => T;
declare const $effect: (fn: () => void | (() => void)) => void;
declare const $bindable: <T>(initial?: T) => T;