Fix types.
This commit is contained in:
parent
2262aa2128
commit
28e931bc64
|
@ -217,10 +217,8 @@ export function basicAutomation(opts?: DeepPartial<Automation>): Automation {
|
|||
icon: "test",
|
||||
description: "test",
|
||||
type: AutomationStepType.TRIGGER,
|
||||
inputs: {},
|
||||
id: "test",
|
||||
inputs: {
|
||||
fields: {},
|
||||
},
|
||||
schema: {
|
||||
inputs: {
|
||||
properties: {},
|
||||
|
|
|
@ -331,7 +331,7 @@ export type AutomationTriggerDefinition = Omit<
|
|||
|
||||
export type AutomationTriggerInputs<T extends AutomationTriggerStepId> =
|
||||
T extends AutomationTriggerStepId.APP
|
||||
? void
|
||||
? void | Record<string, any>
|
||||
: T extends AutomationTriggerStepId.CRON
|
||||
? CronTriggerInputs
|
||||
: T extends AutomationTriggerStepId.ROW_ACTION
|
||||
|
|
Loading…
Reference in New Issue