Skip to content

Commit

Permalink
fix: convert double and decimal to typescript number type
Browse files Browse the repository at this point in the history
  • Loading branch information
ditschedev committed Jun 7, 2023
1 parent 9e8d18d commit e7f202f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/generator/ts_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ var swaggerTypeToTypescriptType = map[string]string{
"boolean": "boolean",
"array": "any[]",
"object": "any",
"double": "number",
"decimal": "number",
"number": "number",
}

func generateTypes(doc *openapi3.T, outputPath string) error {
Expand Down

0 comments on commit e7f202f

Please sign in to comment.