fix(remix-dev): don't allow unknown fields in TS future config #7261
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #7253
See approach in https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgUQB4EMDG8C+cBmUEIcA5DAJ5gCmAtPtQM4ykDcAUO8AHYzVT4s1OADEArjDFRqAYQjd8wAOaJ2ASABuAZgD6UdABMR1dJOkBGAFxwARhAgAbE93Xa9h46anUATNbuOzuw4nDx8AkJwAIJgYHIKyqpwyQQS3gD81gAK6LDA6A4APOJmsvKKSgB8cABkiADaYERgAHLoINTWzFA8SgC61tzUGvxwISHs1KiQsHAG1IJiDvAI6vhp0tarapq6+kYmpVZwMFBi1AA06po+OgDuMAAW1JgA1tan51dqOFd4jKZgIxFExorF4hV2EA
We could have also used
Exact
fromtype-fest
but it felt weird needing 2 args and doing:Note this is in addition to the build-time warnings we log for JS config files: https://github.com/remix-run/remix/blob/dev/packages/remix-dev/config.ts#L566