Type Alias Answer<T>
Answer: T extends Optional<infer S>
? Option<StandardSchemaV1.InferInput<S>>
: T extends StandardSchemaV1 ? StandardSchemaV1.InferInput<T> : never
? Option<StandardSchemaV1.InferInput<S>>
: T extends StandardSchemaV1 ? StandardSchemaV1.InferInput<T> : never
Type Parameters
- T extends RequestType
What a request whose type is
Tgives its parameter: the value, or, whenTis itinera/value!optional,Someof the value orNone. For a class that serialises itself, named withclassOf, the value is an instance of it.