Skip to content

Conversation

Marvinrose
Copy link

This PR enhances TemplateMarkInterpreter.checkTypes to detect unguarded optional properties at compile time, addressing the root cause of Issue #11.

Changes:

  • Modified checkTypes to flag VariableDefinition nodes for optional properties.

  • Added issue-11.test.ts with a single test case using raw TemplateMark to verify the fix for an unguarded {{last}} in a template tied to a model with an optional last property.

Screenshot (575)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant