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

fix: update SvelteKit trailingSlash types #2496

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Sep 11, 2024

I noticed the types is incorrect for trailingSlash

image

This aligns with SvelteKit's types at https://github.com/sveltejs/kit/blob/108cb127eb0a4c3655aeff1f749bcbd98b70324e/packages/kit/types/index.d.ts#L1578

I also removed the (missing) from the doc text since I don't think it's specific to missing trailing slashes only? SvelteKit could also handle requests differently if it gets a URL with trailing slash but with the never config (which it 308 redirects to the non-trailing slash path)

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dummdidumm dummdidumm merged commit 0921d65 into sveltejs:master Sep 12, 2024
3 checks passed
@bluwy bluwy deleted the fix-trailing-slash-types branch September 12, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants