Finalized output type structure

This commit is contained in:
Emir Karabeg
2025-01-16 11:37:50 -08:00
parent 9ded8a1720
commit 6d7e8a3c9b
3 changed files with 4 additions and 8 deletions
+1 -3
View File
@@ -11,9 +11,7 @@ export const ApiBlock: BlockConfig = {
category: 'basic',
},
workflow: {
outputType: {
default: 'json'
},
outputType: 'json',
subBlocks: [
{
title: 'URL',
+1 -3
View File
@@ -11,9 +11,7 @@ export const ConditionalBlock: BlockConfig = {
category: 'basic',
},
workflow: {
outputType: {
default: 'boolean'
},
outputType: 'boolean',
subBlocks: [
{
title: 'Condition Type',
+2 -2
View File
@@ -22,9 +22,9 @@ export interface SubBlockConfig {
password?: boolean
}
export interface OutputTypeConfig {
export type OutputTypeConfig = OutputType | {
default: OutputType
dependsOn?: {
dependsOn: {
subBlockId: string
condition: {
whenEmpty: OutputType