Add additional types declaration to package.json #304
Merged
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.
TS5 and
--moduleResolution bundler
require us to be a little more explicit with our types.First realized this after
create-next-app
changed its defaultmoduleResolution
tobundler
The changes in this PR have been tested using
![CleanShot 2023-07-27 at 11 58 35@2x](https://private-user-images.githubusercontent.com/8933386/256611133-01fda736-1fe7-43f3-8008-302b0eed6b98.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjg5NDEsIm5iZiI6MTczOTMyODY0MSwicGF0aCI6Ii84OTMzMzg2LzI1NjYxMTEzMy0wMWZkYTczNi0xZmU3LTQzZjMtODAwOC0zMDJiMGVlZDZiOTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDI1MDQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDAyMWUxNjdhYjU1ZjA1NmM0NWNiN2JiNTQ3YmZkMDA4MWM4ODA0OWY2ZGI3ZjI2ZjhkMDJlYWI4NzU5YmE5OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Mzqsg61a7G2ys8eEbHpdY0o20jO2qoAZopjpd9sZa40)
![CleanShot 2023-07-27 at 11 59 38@2x](https://private-user-images.githubusercontent.com/8933386/256611292-7df1b020-aca8-412f-ad19-224c909a3154.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjg5NDEsIm5iZiI6MTczOTMyODY0MSwicGF0aCI6Ii84OTMzMzg2LzI1NjYxMTI5Mi03ZGYxYjAyMC1hY2E4LTQxMmYtYWQxOS0yMjRjOTA5YTMxNTQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDI1MDQxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTFkOTQ1YmY5MzViM2EzNzNkMTQzMzY2NzU4NTdmNWY1YmYyYmY4MTFjNGM4YWVhYTlmYjhkMmE2MWM1MjhhNiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ALuSqd_dfcujEw1WeJPoqMU8zqsJ0nfx-d7u9ifcshM)
yarn link
against thatcreate-next-app
repo. VSCode integrations and ts build errors are back!