diff --git a/crates/bindings-typescript/src/lib/table.ts b/crates/bindings-typescript/src/lib/table.ts index d83b957f41f..bfbbf77c461 100644 --- a/crates/bindings-typescript/src/lib/table.ts +++ b/crates/bindings-typescript/src/lib/table.ts @@ -411,7 +411,8 @@ export function table>( }); } - if (meta.defaultValue) { + // Check for defaultValue on the property to allow for 0, false, '', and undefined as defaults + if (Object.prototype.hasOwnProperty.call(meta, 'defaultValue')) { const writer = new BinaryWriter(16); builder.serialize(writer, meta.defaultValue); defaultValues.push({