From 00805cb2cdd9786451b9a3a6746f11f47535288d Mon Sep 17 00:00:00 2001 From: Jacob Richman Date: Wed, 28 May 2025 19:46:08 +0000 Subject: Cleanup: Remove low value StreamingContextType interface. (#585) --- packages/cli/src/ui/contexts/StreamingContext.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'packages/cli/src/ui/contexts') 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( +export const StreamingContext = createContext( undefined, ); -export const useStreamingContext = (): StreamingContextType => { +export const useStreamingContext = (): StreamingState => { const context = React.useContext(StreamingContext); if (context === undefined) { throw new Error( -- cgit v1.2.3