Skip to content

Commit

Permalink
Merge pull request #134 from peat-psuwit/for-upstream/3.x_-_fix-nodeg…
Browse files Browse the repository at this point in the history
…tk-array

fix(node-gtk): override array type only on gjs, fixes #127
  • Loading branch information
JumpLink authored Sep 18, 2023
2 parents 6c3746a + aac1bf7 commit 2fb9c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lib/src/gir-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ export class GirModule {
arrayType = typeArray[0]
}

if (isArray && arrayType?.$?.name && ARRAY_TYPE_MAP[arrayType.$.name]) {
if (this.config.environment == 'gjs' && isArray && arrayType?.$?.name && ARRAY_TYPE_MAP[arrayType.$.name]) {
isArray = false
overrideTypeName = ARRAY_TYPE_MAP[arrayType.$.name] as string | undefined
}
Expand Down

0 comments on commit 2fb9c12

Please sign in to comment.