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

Type.toString doesn't have brackets for union types #1171

Open
Dimava opened this issue Oct 11, 2024 · 0 comments
Open

Type.toString doesn't have brackets for union types #1171

Dimava opened this issue Oct 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@Dimava
Copy link
Contributor

Dimava commented Oct 11, 2024

Report a bug

πŸ”Ž Search Terms

🧩 Context

  • ArkType version: rc15

πŸ§‘β€πŸ’» Repro

let T = type('(string | number)[]')
console.log(T + '')
// number | string[]
@Dimava Dimava added the bug Something isn't working label Oct 11, 2024
@github-project-automation github-project-automation bot moved this to To do in arktypeio Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Implemented
Development

No branches or pull requests

2 participants