Skip to content

v0.6.132

Choose a tag to compare

@github-actions github-actions released this 15 Oct 23:20
c37372a
handle TS types that do not have a declaration (#2864)

<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Make `toColumns` robust when TS properties lack declarations by
falling back to `checker.getTypeOfSymbol` and guarding wrapper/default
detection with optional chaining.
> 
> - **packages/ts-moose-lib/src/dataModels/typeConvert.ts**:
>   - **`toColumns`**:
> - Handle properties with no declarations by falling back to
`checker.getTypeOfSymbol(prop)`.
> - Use optional chaining on `node?.type` for `Key`/`JWT` wrapping and
default handling.
> - Pass `node?.type` to `tsTypeToDataType` to avoid crashes when
declarations are absent.
> 
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
cfccacca69e6cc5486d5d3873582f9ede0ffcc77. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->

---------

Co-authored-by: Copilot <[email protected]>