Add support for numbers and symbols in keyof (but keep it disabled)

This commit is contained in:
Anders Hejlsberg
2018-04-09 07:45:13 -10:00
parent ccf20d3f67
commit ff20f38405
4 changed files with 73 additions and 14 deletions

View File

@@ -678,6 +678,12 @@ namespace ts {
category: Diagnostics.Advanced_Options,
description: Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,
},
{
name: "keyofStringsOnly",
type: "boolean",
category: Diagnostics.Advanced_Options,
description: Diagnostics.Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols,
},
{
// A list of plugins to load in the language service
name: "plugins",