0.0.3: Exotic Type Gymnastics #3

Merged
Astrian merged 40 commits from dev into main 2025-05-22 01:17:51 +00:00
Showing only changes of commit 828d6b0279 - Show all commits

View File

@ -440,7 +440,7 @@ function processElementWithItemContext(
context: ListRenderingContext, context: ListRenderingContext,
) { ) {
// Store the item context of the element so that subsequent updates can find it // Store the item context of the element so that subsequent updates can find it
; (element as { _itemContext?: Record<string, unknown> })._itemContext = ;(element as { _itemContext?: Record<string, unknown> })._itemContext =
itemContext itemContext
// Process bindings in text nodes // Process bindings in text nodes
@ -507,7 +507,8 @@ function processElementWithItemContext(
$el: element, $el: element,
setState: context.setState, setState: context.setState,
getState: context.getState, getState: context.getState,
triggerFunc: context.triggerFunc(eventName, event) triggerFunc: (eventName: string, ...args: unknown[]) =>
context.triggerFunc(eventName, ...args),
} }
// Execute the expression // Execute the expression