MCPcopy
hub / github.com/TanStack/ai / stop

Function stop

packages/ai-angular/src/inject-audio-recorder.ts:78–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 })
77
78 const stop = async (): Promise<unknown> => {
79 const rawRecording = await recorder.stop()
80 const transformed = await options.onComplete?.(rawRecording)
81 // Only `undefined` (returning nothing) keeps the raw recording; a returned
82 // null is a real value, matching the inferred output type.
83 const output = transformed === undefined ? rawRecording : transformed
84 recording.set(output)
85 return output
86 }
87
88 return {
89 recording: recording.asReadonly(),

Callers

nothing calls this directly

Calls 2

setMethod · 0.65
stopMethod · 0.45

Tested by

no test coverage detected