mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-17 09:30:58 -07:00
refactor: remove redundant 'undefined' type or '?' (#2691)
This commit is contained in:
committed by
GitHub
parent
421f989faf
commit
da22deac17
@@ -264,13 +264,12 @@ function visitBoxRow(element: React.ReactNode): Row {
|
||||
|
||||
if (enableDebugLog) {
|
||||
const boxProps = element.props as {
|
||||
children?: React.ReactNode | undefined;
|
||||
children?: React.ReactNode;
|
||||
readonly flexDirection?:
|
||||
| 'row'
|
||||
| 'column'
|
||||
| 'row-reverse'
|
||||
| 'column-reverse'
|
||||
| undefined;
|
||||
| 'column-reverse';
|
||||
};
|
||||
// Ensure the Box has no props other than the default ones and key.
|
||||
let maxExpectedProps = 4;
|
||||
|
||||
@@ -53,8 +53,8 @@ export type ContentGeneratorConfig = {
|
||||
model: string;
|
||||
apiKey?: string;
|
||||
vertexai?: boolean;
|
||||
authType?: AuthType | undefined;
|
||||
proxy?: string | undefined;
|
||||
authType?: AuthType;
|
||||
proxy?: string;
|
||||
};
|
||||
|
||||
export function createContentGeneratorConfig(
|
||||
|
||||
Reference in New Issue
Block a user