@prismatic-io/spectral 7.8.0-preview4 → 7.8.0-preview5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -102,7 +102,8 @@ interface TriggerBranchingResult extends TriggerBaseResult {
102
102
  }
103
103
  export declare type TriggerResult = TriggerBranchingResult | TriggerBaseResult | undefined;
104
104
  export declare type TriggerPerformFunction = (context: ActionContext, payload: TriggerPayload, params: Record<string, unknown>) => Promise<TriggerResult>;
105
- export declare type TriggerEventFunction = (context: ActionContext, params: Record<string, unknown>) => Promise<void | TriggerEventFunctionReturn>;
105
+ export declare type TriggerEventFunctionResult = TriggerEventFunctionReturn | void;
106
+ export declare type TriggerEventFunction = (context: ActionContext, params: Record<string, unknown>) => Promise<TriggerEventFunctionResult>;
106
107
  export interface Trigger {
107
108
  key: string;
108
109
  display: DisplayDefinition & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismatic-io/spectral",
3
- "version": "7.8.0-preview4",
3
+ "version": "7.8.0-preview5",
4
4
  "description": "Utility library for building Prismatic components",
5
5
  "keywords": [
6
6
  "prismatic"