Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The word "push" breaks Typescript types #597

Open
5 tasks done
KristofferEriksson opened this issue Nov 25, 2023 · 0 comments
Open
5 tasks done

The word "push" breaks Typescript types #597

KristofferEriksson opened this issue Nov 25, 2023 · 0 comments

Comments

@KristofferEriksson
Copy link

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:
Skærmbillede 2023-11-25 kl  14 47 23

Reproduction

Create a translation JSON file with the key "push" in it, and try use the generated types.

System Info

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

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant