MCPcopy Index your code
hub / github.com/simstudioai/sim / block

Function block

apps/sim/serializer/field-analysis.test.ts:21–33  ·  view source on GitHub ↗
(overrides: Record<string, any> = {})

Source from the content-addressed store, hash-verified

19import { collectBlockFieldIssues, extractBlockParams } from '@/serializer/index'
20
21function block(overrides: Record<string, any> = {}) {
22 return {
23 id: 'b1',
24 type: 'x',
25 name: 'My Block',
26 enabled: true,
27 position: { x: 0, y: 0 },
28 subBlocks: {},
29 outputs: {},
30 data: {},
31 ...overrides,
32 } as any
33}
34
35function config(subBlocks: any[], overrides: Record<string, any> = {}) {
36 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected