We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@deprecated
Deprecating component props do not yield any apparent warnings in Svelte 4 and Svelte 5.
Example Svelte 4 code:
<script> /** * @type { boolean } * @deprecated Will be removed in next major. */ export let test = false </script>
Example Svelte 5 code:
<script> /** * @typedef {boolean} Test * @deprecated Will be removed in next major. */ /** @type {{ test: Test }} */ let { test } = $props() </script>
When deprecating a component prop:
svelte-check
No response
Svelte 5 example, props used internally are crossed out. In this image, burst is incorrectly crossed out.
burst
No deprecation warning when consuming Svelte 5 component.
Svelte 4 example, internal usage is correctly deprecated.
Consumption is documented as deprecated without being crossed out.
The text was updated successfully, but these errors were encountered:
Probably related to microsoft/TypeScript#45657
Sorry, something went wrong.
No branches or pull requests
Description
Deprecating component props do not yield any apparent warnings in Svelte 4 and Svelte 5.
Example Svelte 4 code:
Example Svelte 5 code:
Proposed solution
When deprecating a component prop:
svelte-check
when deprecated props are used.Alternatives
No response
Additional Information, eg. Screenshots
Svelte 5 example, props used internally are crossed out. In this image,
burst
is incorrectly crossed out.No deprecation warning when consuming Svelte 5 component.
Svelte 4 example, internal usage is correctly deprecated.
Consumption is documented as deprecated without being crossed out.
The text was updated successfully, but these errors were encountered: