rust2.0 #1

Merged
hibas123 merged 13 commits from rust2.0 into main 2024-08-13 10:00:18 +00:00
2 changed files with 2 additions and 4 deletions
Showing only changes of commit f93755604a - Show all commits

View File

@ -33,7 +33,7 @@ export class TypescriptTarget extends CompileTarget {
} }
private generateImport(imports: string, path: string) { private generateImport(imports: string, path: string) {
return `import ${imports} from "${path + (this.flavour === "esm" ? ".ts" : "") return `import ${imports} from "${path + (this.flavour === "esm" ? ".js" : "")
}";\n`; }";\n`;
} }
@ -207,7 +207,7 @@ export class TypescriptTarget extends CompileTarget {
this.writeFormattedFile( this.writeFormattedFile(
"service_client.ts", "service_client.ts",
this.generateImport( this.generateImport(
"{ RequestObject, ResponseObject, ErrorCodes, Logging }", "{ type RequestObject, type ResponseObject, ErrorCodes, Logging }",
"./service_base" "./service_base"
) + ) +
this.generateImport(" { VerificationError }", "./ts_base") + this.generateImport(" { VerificationError }", "./ts_base") +

View File

@ -1,5 +1,3 @@
import { isGeneratorFunction } from "util/types";
function form_verficiation_error_message(type?: string, field?: string) { function form_verficiation_error_message(type?: string, field?: string) {
let msg = "Parameter verification failed! "; let msg = "Parameter verification failed! ";
if (type && field) { if (type && field) {