Skip to content

Catch execution errors and pass them to onError and renderError if provided#305

Closed
trevordixon wants to merge 1 commit intoTroyAlford:developfrom
trevordixon:errors
Closed

Catch execution errors and pass them to onError and renderError if provided#305
trevordixon wants to merge 1 commit intoTroyAlford:developfrom
trevordixon:errors

Conversation

@trevordixon
Copy link

No description provided.

@TroyAlford
Copy link
Owner

Hey @trevordixon :) Closing this one by merging #308 as well.

@TroyAlford TroyAlford closed this Sep 19, 2025
TroyAlford added a commit that referenced this pull request Sep 19, 2025
…ng (#308)

## Summary

Refactors TypeScript typings for the `components` prop to support nested component collections and adds support for additional unary operations.

## What Changed

- **Type Safety**: Added `ComponentType` and `ComponentsType` definitions for better component collection support
- **Unary Operations**: Added bitwise NOT (`~`) and `typeof` operator support
- **Error Handling**: Fixed error handling logic to prevent execution on parse errors
- **Developer Experience**: Improved IntelliSense and autocomplete for complex component hierarchies

## Why

- Better type safety when passing nested component collections
- More complete JavaScript expression evaluation
- Cleaner, more maintainable type definitions
- More robust error handling

Closes #297
Closes #304
Closes #305
Closes #306
Closes #307
@TroyAlford
Copy link
Owner

This is now out/available in v2.4.1

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.

2 participants