Function defineTriggerInputParamsSchema
- defineTriggerInputParamsSchema<Params>(definer): TObject<Params>
Type Parameters
Params extends TProperties
Parameters
definer: ((t) => Params)
- (t): Params
Parameters
t: {
array: (<T>(schema, options?) => TArray<T>);
boolean: ((options?) => TBoolean);
literal: (<T>(value, options?) => TLiteral<T>);
object: (<T>(properties, options?) => TObject<T>);
optional: {
<T, F>(schema, enable): TOptionalFromMappedResult<T, F>;
<T, F>(schema, enable): TOptionalWithFlag<T, F>;
<T>(schema): TOptionalFromMappedResult<T, true>;
<T>(schema): TAddOptional<T>;
};
record: (<K, T>(key, schema, options?) => TRecordOrObject<K, T>);
string: ((options?) => TString);
union: (<T>(schemas, options?) => Union<T>);
}
array: (<T>(schema, options?) => TArray<T>)
- <T>(schema, options?): TArray<T>
Parameters
schema: T
Optional
options: ArrayOptions
Returns TArray<T>
boolean: ((options?) => TBoolean)
- (options?): TBoolean
Parameters
Optional
options: SchemaOptions
Returns TBoolean
literal: (<T>(value, options?) => TLiteral<T>)
- <T>(value, options?): TLiteral<T>
Parameters
value: T
Optional
options: SchemaOptions
Returns TLiteral<T>
object: (<T>(properties, options?) => TObject<T>)
- <T>(properties, options?): TObject<T>
Parameters
properties: T
Optional
options: ObjectOptions
Returns TObject<T>
optional: {
<T, F>(schema, enable): TOptionalFromMappedResult<T, F>;
<T, F>(schema, enable): TOptionalWithFlag<T, F>;
<T>(schema): TOptionalFromMappedResult<T, true>;
<T>(schema): TAddOptional<T>;
}
- <T, F>(schema, enable): TOptionalFromMappedResult<T, F>
Type Parameters
T extends TMappedResult<TProperties>
F extends boolean
Returns TOptionalFromMappedResult<T, F>
- <T, F>(schema, enable): TOptionalWithFlag<T, F>
Type Parameters
T extends TSchema
F extends boolean
Returns TOptionalWithFlag<T, F>
- <T>(schema): TOptionalFromMappedResult<T, true>
Type Parameters
T extends TMappedResult<TProperties>
Returns TOptionalFromMappedResult<T, true>
- <T>(schema): TAddOptional<T>
Returns TAddOptional<T>
record: (<K, T>(key, schema, options?) => TRecordOrObject<K, T>)
- <K, T>(key, schema, options?): TRecordOrObject<K, T>
Type Parameters
K extends TSchema
T extends TSchema
Parameters
key: K
schema: T
Optional
options: ObjectOptions
Returns TRecordOrObject<K, T>
string: ((options?) => TString)
- (options?): TString
Parameters
Optional
options: StringOptions
Returns TString
union: (<T>(schemas, options?) => Union<T>)
- <T>(schemas, options?): Union<T>
Parameters
schemas: [...T[]]
Optional
options: SchemaOptions
Returns Union<T>
Returns Params
Returns TObject<Params>
Used to define the
inputParams
schema for a Trigger.