We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f3f84d commit 8faa974Copy full SHA for 8faa974
src/api-writer/glua-api-writer.ts
@@ -207,7 +207,7 @@ export class GluaApiWriter {
207
if (arg.type === 'vararg')
208
arg.name = '...';
209
210
- luaDocComment += `---@param ${GluaApiWriter.safeName(arg.name)}${arg.default ? `?` : ''} ${this.transformType(arg.type)} ${putCommentBeforeEachLine(arg.description!)}\n`;
+ luaDocComment += `---@param ${GluaApiWriter.safeName(arg.name)}${arg.default !== undefined ? `?` : ''} ${this.transformType(arg.type)} ${putCommentBeforeEachLine(arg.description!)}\n`;
211
});
212
}
213
0 commit comments