mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
type literals, properties only
This commit is contained in:
1 parent
6fe59f3450
commit
f0b4efe94f
9 files changed
+97
-73
No files matched your search
@@ -51,6 +51,7 @@ namespace ts.codefix {
|
||||
}
|
||||
|
||||
const declaration = declarations[0] as Declaration;
|
||||
// TODO: get name as identifier or computer property name, etc.
|
||||
const name = declaration.name ? declaration.name.getText() : undefined;
|
||||
const visibilityModifier = createVisibilityModifier(getModifierFlags(declaration));
|
||||
const modifiers = visibilityModifier ? [visibilityModifier] : undefined;
|
||||
|
||||
Reference in new issue
Block a user