Fix TypeScript node file upload

This commit is contained in:
Mads Mætzke Tandrup
2015-07-25 22:05:29 +02:00
parent b0f6b49595
commit fea8e680df
2 changed files with 27 additions and 4 deletions

View File

@@ -122,6 +122,8 @@ public abstract class AbstractTypeScriptClientCodegen extends DefaultCodegen imp
MapProperty mp = (MapProperty) p;
Property inner = mp.getAdditionalProperties();
return "{ [key: string]: "+ getTypeDeclaration(inner) + "; }";
} else if (p instanceof FileProperty) {
return "any";
}
return super.getTypeDeclaration(p);
}