fkling / fkling/astexplorer

typescript: `readonly` results in syntax error

Open
#578 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
6.5k
Forks
772
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
`type PassA = readonly T[];` will not be displayed in the output.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to https://astexplorer.net/#/gist/bea26d669eb5836fa3cfcc82692f568b/847a7a4b88865ea95b0ab6b9b8c2eaafb10f556c

3. Scroll down to output window
4. See error

**Expected behavior**
No syntax error as in https://www.typescriptlang.org/play?#code/C4TwDgpgBAKlC8UCuA7A1ig9gdxQbgChRIoBZJYAQwCMAbCAQQCcnKQAeGAPgSmdY7dCRcNAAKlAM6SGvJhEoATTClohYAbQC6hYuKmSAQr3JU6jFm05ddoqBOkBhXgCUFy1SH5WhBESQAxSgBLWllEGG1bQJDaY0RvQRsgA

**Screenshots**
![](https://i.ibb.co/6vLWzGN/Screenshot-from-2021-04-12-14-39-26.png)

**Browser (please complete the following information):**
- OS: Ubuntu 20.04
- Browser chrome
- Version 79

**astexplorer settings:**
- Selected parser: `@typescript-eslint/parser`
- Selected transformer (if applicable): [e.g. jscodeshift]
- Contents of the local storage key `explorerSettingsV1` (code can be removed if you don't want it to be public)

**Additional context**
N/A

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.