Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discrepancy between documentation and typings #13597

Open
Stadly opened this issue Mar 17, 2025 · 1 comment
Open

Discrepancy between documentation and typings #13597

Stadly opened this issue Mar 17, 2025 · 1 comment

Comments

@Stadly
Copy link

Stadly commented Mar 17, 2025

The documentation mentions the use of "false" and false for data-sveltekit-preload-data, but neither is allowed by the typings:

'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;

I'm not certain which is correct, hence the issue instead of a PR :)

@eltigerchino
Copy link
Member

eltigerchino commented Mar 24, 2025

Apparently, we can't update these types to include false until SvelteKit 3.0 (see #10555 (comment)). But it is planned to remove the 'off' value in the future. Related: sveltejs/svelte#8638

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants