You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Template parser emits invalid TypeScript new ); when optional seed block is empty in generated Column class #10
Generated constructor call should include a class and optional argument only when present:
this._fieldset = new AddressSchema(seed);
this._fieldset = new AddressSchema();
Root cause hypothesis
The template output for constructor creation appears to be generated with a nested optional block, which can produce an empty argument list and emit invalid TS (new );).
Suggested fix
Prefer passing seed as a direct template value in this path instead of using nested conditional tags inside new (...).
Or harden the template parser to avoid token parsing where method/name and close patterns consume reserved markers like %, <, and >.
Activity
jamespaulengay commentedon Jul 9, 2026
Schema Snippet
cblanquera commentedon Jul 9, 2026
This is not an issue for this project. The real problem is this: https://github.com/stackpress/stackpress/blob/main/packages/stackpress-schema/src/transform/column/index.ts#L347
should be:
fix for stackpress/lib#10