You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
Currently the JSON data imported by /src/data/index.tsx files is not type checked in those cases where one is using importAll (rather than import) - that is, in case of folder collections.
Ideally these types would be checked somehow, so that the app does not crash when the json files are corrupt (e.g. because netlify cms writes unexpected things in there)
The text was updated successfully, but these errors were encountered:
The simplest way probably is to go and change netlify cms to write a single json file containing a list, instad of one json file per collection entry. Even better would be to output typescript right away, with type definitions for each collection automatically derived from the widgets and the schema.
Then we can dump importAll entirely and just use import.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently the JSON data imported by /src/data/index.tsx files is not type checked in those cases where one is using importAll (rather than import) - that is, in case of folder collections.
Ideally these types would be checked somehow, so that the app does not crash when the json files are corrupt (e.g. because netlify cms writes unexpected things in there)
The text was updated successfully, but these errors were encountered: