From aac1bf78622a00e7a573b9d7d6ec648b6ccb708e Mon Sep 17 00:00:00 2001 From: Ratchanan Srirattanamet Date: Sat, 9 Sep 2023 03:42:33 +0700 Subject: [PATCH] fix(node-gtk): override array type only on gjs, fixes #127 Node-gtk doesn't do array type override. --- packages/lib/src/gir-module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib/src/gir-module.ts b/packages/lib/src/gir-module.ts index b836ff270..291e5a5ea 100644 --- a/packages/lib/src/gir-module.ts +++ b/packages/lib/src/gir-module.ts @@ -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 }