File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ type InputSchema = { rawValue: Cell<string> };
5555type OutputSchema = { validatedValue: string | null };
5656
5757const MyRecipe = recipe <InputSchema , OutputSchema >(" MyRecipe" , ({ rawValue }) => {
58- // Example 1: Using full event object
58+ // Example 1: Using full event object
5959 const handleChange = handler <{ detail: { value: string } }, { rawValue: Cell <string > }>((e , { rawValue }) => {
6060 rawValue .set (e .detail .value );
6161 });
@@ -129,7 +129,20 @@ const addItem = handler<
129129This example also demonstrates verbose specification of more complex types .
130130
131131` ` ` tsx
132- import { Default, OpaqueRef } from "commontools";
132+ import {
133+ h,
134+ derive,
135+ handler,
136+ ifElse,
137+ NAME,
138+ recipe,
139+ str,
140+ UI,
141+ OpaqueRef,
142+ Cell,
143+ Default,
144+ Opaque,
145+ } from "commontools";
133146
134147type Charm = any;
135148
You can’t perform that action at this time.
0 commit comments