2
0

feat(inputs): Add Set variable step

This commit is contained in:
Baptiste Arnaud
2022-01-14 07:49:24 +01:00
parent 13f72f5ff7
commit 4ccb7bca49
55 changed files with 1024 additions and 223 deletions

View File

@ -1,4 +1,5 @@
import { Parser } from 'htmlparser2'
import { Step } from 'models'
export const fetcher = async (input: RequestInfo, init?: RequestInit) => {
const res = await fetch(input, init)
@ -115,3 +116,5 @@ export const removeUndefinedFields = <T>(obj: T): T =>
: { ...acc, [key]: obj[key as keyof T] },
{} as T
)
export const stepHasOptions = (step: Step) => 'options' in step