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

Add prerendering to $app/env typings #1316

Merged
merged 2 commits into from
May 3, 2021
Merged

Add prerendering to $app/env typings #1316

merged 2 commits into from
May 3, 2021

Conversation

TravisSpomer
Copy link
Contributor

This change makes TypeScript stop yelling at you if you use prerendering from src/hooks.ts or wherever.

Since this doesn't affect anything at runtime I wasn't sure if it should have a changeset from pnpx changeset; should I add one?

This change makes TypeScript stop yelling at you if you use `prerendering` from `src/hooks.ts` or wherever.
@Rich-Harris
Copy link
Member

Thanks! It should have a changeset, yes, because that's what triggers the release workflow

@TravisSpomer
Copy link
Contributor Author

Thanks! It should have a changeset, yes, because that's what triggers the release workflow

Okay, done! I think!

@benmccann
Copy link
Member

Is there anything we could have done to catch this error like type checking the tests or examples? It seems like we've had a few reports of issues like this and I'd like to avoid this keep happening if possible

@Rich-Harris Rich-Harris mentioned this pull request May 3, 2021
5 tasks
@Rich-Harris
Copy link
Member

Thanks @TravisSpomer

Is there anything we could have done to catch this error like type checking the tests or examples?

opened a draft PR for that: #1319

@Rich-Harris Rich-Harris merged commit 63eff1a into sveltejs:master May 3, 2021
@TravisSpomer TravisSpomer deleted the patch-1 branch May 3, 2021 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants