mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 17:41:24 -07:00
fix(core): enforce optionality for API response fields in code_assist (#20714)
This commit is contained in:
@@ -508,6 +508,16 @@ export class CodeAssistServer implements ContentGenerator {
|
||||
}
|
||||
|
||||
interface VpcScErrorResponse {
|
||||
response?: {
|
||||
data?: {
|
||||
error?: {
|
||||
details?: unknown[];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
function isVpcScErrorResponse(error: unknown): error is VpcScErrorResponse & {
|
||||
response: {
|
||||
data: {
|
||||
error: {
|
||||
@@ -515,9 +525,7 @@ interface VpcScErrorResponse {
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
function isVpcScErrorResponse(error: unknown): error is VpcScErrorResponse {
|
||||
} {
|
||||
return (
|
||||
!!error &&
|
||||
typeof error === 'object' &&
|
||||
|
||||
Reference in New Issue
Block a user