Remote / foldkit-remote/testing

Recording

interface · packages/remote/src/testing.ts:606

interface Recording<AppModel, Message, Return> {
  readonly update: (model: AppModel, message: Message) => Return
  readonly check: () => void
}

What Trace.record keeps of an application running on Foldkit's runtime.

Members

Recording.update

property · packages/remote/src/testing.ts:608

readonly update: (model: AppModel, message: Message) => Return

The application's update, keeping each Message and the Model it left: give it to the runtime.

Recording.check

property · packages/remote/src/testing.ts:610

readonly check: () => void

Throws as Trace.run does, for what the recording has met so far.