Overview / Form
Form<T, S>
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends Record<string, z.ZodType> | Record<string, z.ZodType> |
S extends z.infer<z.ZodObject<T>> | z.infer<z.ZodObject<T>> |
Constructors
new Form()
new Form<
T,S>(name,schema,options):Form<T,S>
Parameters
| Parameter | Type |
|---|---|
name | string |
schema | T |
options | FormOptions<S> |
Returns
Form<T, S>
Properties
Accessors
active
Get Signature
get active():
boolean
Returns
boolean
Set Signature
set active(
active):void
Parameters
| Parameter | Type |
|---|---|
active | boolean |
Returns
void
state
Get Signature
get state():
FormState
Returns
Methods
assignCat()
assignCat(
cat):Form<T,S>
Parameters
| Parameter | Type |
|---|---|
cat | StrayCat |
Returns
Form<T, S>
next()
next():
Promise<AgentFastReply>
Returns
Promise<AgentFastReply>
reset()
reset():
void
Returns
void