(block: BlockConfig)
| 800 | * Serialize a built-in trigger block for VFS components/triggers/sim/{type}.json |
| 801 | */ |
| 802 | export function serializeBuiltinTriggerSchema(block: BlockConfig): string { |
| 803 | return JSON.stringify( |
| 804 | { |
| 805 | type: block.type, |
| 806 | name: block.name, |
| 807 | description: block.description, |
| 808 | longDescription: block.longDescription || undefined, |
| 809 | category: 'builtin', |
| 810 | triggers: block.triggers || undefined, |
| 811 | subBlocks: block.subBlocks.map(serializeSubBlock), |
| 812 | inputs: block.inputs, |
| 813 | outputs: block.outputs, |
| 814 | }, |
| 815 | null, |
| 816 | 2 |
| 817 | ) |
| 818 | } |
| 819 | |
| 820 | interface TriggerOverviewEntry { |
| 821 | id: string |
no outgoing calls
no test coverage detected