Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(schema): add back PublicRuntimeConfig interface for augmentation #4849

Merged
merged 3 commits into from
May 6, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#13808

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR restores the PublicRuntimeConfig interface, as a vehicle for augmenting types for runtimeConfig['public'] which otherwise can't really be done. (Otherwise each augmentation would completely override the type of public.)

Particularly value your input @pi0 as you touched this last.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe requested a review from pi0 May 6, 2022 12:56
@danielroe danielroe self-assigned this May 6, 2022
@netlify
Copy link

netlify bot commented May 6, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit b59e1e8
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/627521c07bbae70009f57500

@pi0 pi0 merged commit e0125f4 into main May 6, 2022
@pi0 pi0 deleted the fix/runtimeconfig-typing branch May 6, 2022 13:27
@pi0 pi0 mentioned this pull request May 6, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typing of useRuntimeConfig.public
2 participants