FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Convert two arrays to readonly · Pull Request #17685 · microsoft/TypeScript · GitHub

Convert two arrays to readonly - #17685

Merged
1 commit merged into
masterfrom
emptyArray_readonly
Aug 8, 2017
Merged

Convert two arrays to readonly#17685
1 commit merged into
masterfrom
emptyArray_readonly

Conversation

Deleted user (ghost) commented Aug 8, 2017
edited by ghost
Loading

Copy link
Copy Markdown

The cast is currently causing errors when running gulp local on the master branch. Turns out it's pretty easy to fix just this without any big API changes.

return emptyArray as string[]; // TODO: https://github.com/Microsoft/TypeScript/issues/16312

                       ~~~~~~~~~~~~~~~~~~~~~~

src/server/server.ts(772,20): error TS2352: Type 'SortedReadonlyArray<never>' cannot be converted to type 'string[]'.

ghost force-pushed the emptyArray_readonly branch from 5a936b2 to 0296eef Compare August 8, 2017 17:33
ghost merged commit f69ce5c into master Aug 8, 2017
ghost deleted the emptyArray_readonly branch August 8, 2017 17:54
ghost mentioned this pull request Aug 8, 2017
Microsoft (microsoft) locked and limited conversation to collaborators Jun 14, 2018
This pull request was closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL