Skip to content

BlockSuite API Documentation / @blocksuite/presets / actionToStream

Function: actionToStream()

actionToStream<T>(id, signal?, variants?): undefined | (host) => TextStream

Type parameters

T extends keyof AIActions

Parameters

id: T

signal?: AbortSignal

variants?: Omit<Parameters<AIActions[T]>[0], keyof AITextActionOptions>

Returns

undefined | (host) => TextStream

Source

packages/presets/src/ai/actions/doc-handler.ts:61