chore: fix ts

Co-authored-by: Copilot <copilot@github.com>
svelte-custom-renderer-single-type-argument
paoloricciuti 2 months ago
parent 1e62a1c6d4
commit 2ee47cf01c

@ -415,8 +415,9 @@ export function props_id() {
hydrate_next();
return id;
}
// @ts-expect-error This way we ensure the id is unique even across Svelte runtimes
(globalThis.__svelte ??= {}).uid ??= 1;
/**@type {*}*/ (globalThis.__svelte ??= {}).uid ??= 1;
return `c${/**@type {*}*/ (globalThis.__svelte).uid++}`;
// @ts-expect-error
return `c${globalThis.__svelte.uid++}`;
}

Loading…
Cancel
Save