From cc7a743868e79215304ddd94ae678004c2cab0f0 Mon Sep 17 00:00:00 2001 From: Alberto Granzotto Date: Tue, 5 Dec 2023 12:10:45 +0100 Subject: [PATCH] Allow Step to return null --- lib/internal/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/internal/types.ts b/lib/internal/types.ts index e86771a..af3a0cd 100644 --- a/lib/internal/types.ts +++ b/lib/internal/types.ts @@ -87,11 +87,13 @@ export type Context = {}; export type ContractContext = Context & NeokingdomContracts; -export type Step = (c: T) => Promise; +export type Step = ( + c: T +) => Promise; export type StepWithExpandable = | ExpandableStep - | ((c: T) => Promise); + | ((c: T) => Promise); export type ExpandableStep = { expandableFunction: (c: T) => ProcessedSequence;