summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/contexts/StreamingContext.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/contexts/StreamingContext.tsx')
-rw-r--r--packages/cli/src/ui/contexts/StreamingContext.tsx8
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/cli/src/ui/contexts/StreamingContext.tsx b/packages/cli/src/ui/contexts/StreamingContext.tsx
index 6144ed70..8944d682 100644
--- a/packages/cli/src/ui/contexts/StreamingContext.tsx
+++ b/packages/cli/src/ui/contexts/StreamingContext.tsx
@@ -7,15 +7,11 @@
import React, { createContext } from 'react';
import { StreamingState } from '../types.js';
-export interface StreamingContextType {
- streamingState: StreamingState;
-}
-
-export const StreamingContext = createContext<StreamingContextType | undefined>(
+export const StreamingContext = createContext<StreamingState | undefined>(
undefined,
);
-export const useStreamingContext = (): StreamingContextType => {
+export const useStreamingContext = (): StreamingState => {
const context = React.useContext(StreamingContext);
if (context === undefined) {
throw new Error(