mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 01:49:57 -05:00
Declaration for default bindings of the import syntax
This commit is contained in:
@@ -774,6 +774,13 @@ module ts {
|
||||
}
|
||||
write("import ");
|
||||
if (node.importClause) {
|
||||
if (node.importClause.name) {
|
||||
writeTextOfNode(currentSourceFile, node.importClause.name);
|
||||
if (node.importClause.namedBindings) {
|
||||
write(",");
|
||||
}
|
||||
write(" ");
|
||||
}
|
||||
if (node.importClause.namedBindings) {
|
||||
if (node.importClause.namedBindings.kind === SyntaxKind.NamespaceImport) {
|
||||
write("* as ");
|
||||
|
||||
Reference in New Issue
Block a user