MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeStep

Function makeStep

packages/effect/src/ui/Component.ts:1172–1187  ·  view source on GitHub ↗
(
  model: unknown,
  commands: ReadonlyArray<Command.Command<any, any>>,
  emitted: ReadonlyArray<unknown>,
  lists: ReadonlyArray<ListIssue>,
  sends: ReadonlyArray<Send>,
  viewTransitionTypes: ReadonlyArray<string> | undefined
)

Source from the content-addressed store, hash-verified

1170}
1171
1172const makeStep = (
1173 model: unknown,
1174 commands: ReadonlyArray<Command.Command<any, any>>,
1175 emitted: ReadonlyArray<unknown>,
1176 lists: ReadonlyArray<ListIssue>,
1177 sends: ReadonlyArray<Send>,
1178 viewTransitionTypes: ReadonlyArray<string> | undefined
1179): Step<any, any, any, any> =>
1180 Object.assign(Object.create(StepProto), {
1181 model,
1182 commands,
1183 emitted,
1184 lists,
1185 sends,
1186 viewTransitionTypes
1187 })
1188
1189const stepWith = (
1190 step: Step<any, any, any, any>,

Callers 4

stepWithFunction · 0.85
combineFunction · 0.85
initSetFunction · 0.85
hostFunction · 0.85

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected