@proto-kit/sequencer • Docs


Documentation / @proto-kit/sequencer / TaskSerializer

Interface: TaskSerializer<Type>

Type Parameters

• Type

Properties

fromJSON()

fromJSON: (json) => Type | Promise<Type>

Parameters

• json: string

Returns

Type | Promise<Type>

Defined in

packages/sequencer/src/worker/flow/Task.ts:14


toJSON()

toJSON: (input) => string | Promise<string>

Parameters

• input: Type

Returns

string | Promise<string>

Defined in

packages/sequencer/src/worker/flow/Task.ts:13