(namePath)
| 66 | const data = signal({needLastName: true, items: [{first: '', last: ''}]}); |
| 67 | |
| 68 | const s: SchemaOrSchemaFn<User> = (namePath) => { |
| 69 | validate(namePath.last, ({value}) => { |
| 70 | return value().length > 0 ? undefined : {kind: 'required1'}; |
| 71 | }); |
| 72 | }; |
| 73 | |
| 74 | const s2: SchemaOrSchemaFn<User> = (namePath) => { |
| 75 | validate(namePath.last, ({value}) => { |
nothing calls this directly
no test coverage detected