diff --git a/telefunc/node/react-streaming/useTelefuncContext.ts b/telefunc/node/react-streaming/useTelefuncContext.ts index 7b4163005..7a0eac7e3 100644 --- a/telefunc/node/react-streaming/useTelefuncContext.ts +++ b/telefunc/node/react-streaming/useTelefuncContext.ts @@ -1,13 +1,13 @@ export { useTelefuncContext } export { TelefuncSSR } -import { createContext, useContext, createElement } from 'react' +import { createContext, useContext, createElement, type ReactNode } from 'react' import type { Telefunc } from '../../node/server/getContext/TelefuncNamespace' import { assertUsage, isObject } from '../utils' const TelefuncReactContext = createContext(null) -function TelefuncSSR({ context, children }: { context?: Telefunc.Context; children: React.ReactNode }) { +function TelefuncSSR({ context, children }: { context?: Telefunc.Context; children: ReactNode }) { assertUsage( context === undefined || isObject(context), '[] context should be an object'