diff --git a/packages/core/rsc/stream-ui/index.tsx b/packages/core/rsc/stream-ui/index.tsx index 8e6f87283af1..cc0835c061f9 100644 --- a/packages/core/rsc/stream-ui/index.tsx +++ b/packages/core/rsc/stream-ui/index.tsx @@ -1 +1,3 @@ export { streamUI } from './stream-ui'; + +export type { RenderText, RenderTool }; \ No newline at end of file diff --git a/packages/core/rsc/stream-ui/stream-ui.tsx b/packages/core/rsc/stream-ui/stream-ui.tsx index 0b4e2ced9745..744b32894bc6 100644 --- a/packages/core/rsc/stream-ui/stream-ui.tsx +++ b/packages/core/rsc/stream-ui/stream-ui.tsx @@ -26,7 +26,7 @@ type Renderer> = ( | Generator | AsyncGenerator; -type RenderTool = { +export type RenderTool = { description?: string; parameters: PARAMETERS; generate?: Renderer< @@ -40,7 +40,7 @@ type RenderTool = { >; }; -type RenderText = Renderer< +export type RenderText = Renderer< [ { /**