Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jun 6, 2016

Fixes #7980
This doesn't change the CompilerOptions type, so only JS consumers can use strings.

return options;
}

const stringValuedEnums = <CommandLineOptionOfCustomType[]>filter(optionDeclarations, o => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit, i would move this before the function. also consider renaming it to include commandLine somewhere.

@mhegazy
Copy link
Contributor

mhegazy commented Jun 6, 2016

👍

@mhegazy
Copy link
Contributor

mhegazy commented Jun 8, 2016

request for additional test. other than that, looks good to me.

Andy Hanson added 2 commits June 9, 2016 05:59
(commandLineOptions_stringToEnum would be undefined if optionDeclarations wasn't loaded yet)
@ghost ghost merged commit 75b8293 into master Jun 9, 2016
@ghost ghost deleted the transpile_options branch June 9, 2016 16:04
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
This pull request was closed.
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