Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Jun 19, 2024
1 parent 66cb534 commit 70ce2a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typescript-generator/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function serializeAdditionalPropertiesType (type: M.Interface): string {

const parent = model.types.find(t => t.name.name === type.inherits?.type.name)
if (parent != null && parent.kind === 'interface' && parent.generics != null && parent.generics.length === type.inherits?.generics?.length) {
const map = new Map<M.TypeName, M.ValueOf>();
const map = new Map<M.TypeName, M.ValueOf>()
for (let i = 0; i < parent.generics.length; i++) {
map.set(parent.generics[i], type.inherits.generics[i])
}
Expand Down Expand Up @@ -338,7 +338,7 @@ function serializeAdditionalPropertiesType (type: M.Interface): string {
}
}

function replaceGenerics(value: M.ValueOf, map: Map<M.TypeName, M.ValueOf>): M.ValueOf {
function replaceGenerics (value: M.ValueOf, map: Map<M.TypeName, M.ValueOf>): M.ValueOf {
if (value.kind !== 'instance_of') {
return value
}
Expand Down

0 comments on commit 70ce2a3

Please sign in to comment.