Open KristofferEriksson opened 1 year ago
The generated Typescript types seems correct, but it can for some reson not be used in autocomplete.
Example: { "messages": { "push": { "message-one": "Message One", }, "email": { "message-two": "Message Two", } } }
{ "messages": { "push": { "message-one": "Message One", }, "email": { "message-two": "Message Two", } } }
Gives this:
Create a translation JSON file with the key "push" in it, and try use the generated types.
System: OS: macOS 14.0 CPU: (12) arm64 Apple M2 Max Memory: 169.81 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.16.0 - /usr/local/bin/node npm: 9.6.5 - /usr/local/bin/npm pnpm: 8.6.12 - ~/Library/pnpm/pnpm Watchman: 2023.09.25.00 - /opt/homebrew/bin/watchman
npm
Describe the bug
The generated Typescript types seems correct, but it can for some reson not be used in autocomplete.
Example:
{ "messages": { "push": { "message-one": "Message One", }, "email": { "message-two": "Message Two", } } }
Gives this:
Reproduction
Create a translation JSON file with the key "push" in it, and try use the generated types.
System Info
Used Package Manager
npm
Validations