Dash in interface key causes error
Open
Typing: interfaces
- Dominant language
- Rust
- Stars
- 22.3k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
```js
export interface Header {
Authorization: string,
'User-Agent': string,
}
```
```sh
$ flow
Error: source/types.js:31
31: 'User-Agent': string,
^^^^^^^^^^^^ illegal name
Found 1 error
```
Is this a bug, or is there something I can do to fix it?
Contributor guide
Assessment
This issue has not been assessed yet.