File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -192,8 +192,10 @@ export type {
192192 GoogleGenAIClient ,
193193 GoogleGenAIChat ,
194194 GoogleGenAIOptions ,
195- GoogleGenAIIstrumentedMethod ,
195+ GoogleGenAIInstrumentedMethod ,
196196} from './tracing/google-genai/types' ;
197+ // eslint-disable-next-line deprecation/deprecation
198+ export type { GoogleGenAIIstrumentedMethod } from './tracing/google-genai/types' ;
197199
198200export { SpanBuffer } from './tracing/spans/spanBuffer' ;
199201export { hasSpanStreamingEnabled } from './tracing/spans/hasSpanStreamingEnabled' ;
Original file line number Diff line number Diff line change @@ -186,10 +186,14 @@ export interface GoogleGenAIChat {
186186 sendMessageStream : ( ...args : unknown [ ] ) => Promise < AsyncGenerator < GenerateContentResponse , any , unknown > > ;
187187}
188188
189+ export type GoogleGenAIInstrumentedMethod = keyof typeof GOOGLE_GENAI_METHOD_REGISTRY ;
190+
189191/**
190- * @deprecated This type is no longer used and will be removed in the next major version.
192+ * @deprecated Use {@link GoogleGenAIInstrumentedMethod} instead. This alias
193+ * preserves backwards compatibility with the misspelled name and will be
194+ * removed in the next major version.
191195 */
192- export type GoogleGenAIIstrumentedMethod = keyof typeof GOOGLE_GENAI_METHOD_REGISTRY ;
196+ export type GoogleGenAIIstrumentedMethod = GoogleGenAIInstrumentedMethod ;
193197
194198// Export the response type for use in instrumentation
195199export type GoogleGenAIResponse = GenerateContentResponse ;
You can’t perform that action at this time.
0 commit comments