mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 21:03:05 -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) {
|
if (enableDebugLog) {
|
||||||
const boxProps = element.props as {
|
const boxProps = element.props as {
|
||||||
children?: React.ReactNode | undefined;
|
children?: React.ReactNode;
|
||||||
readonly flexDirection?:
|
readonly flexDirection?:
|
||||||
| 'row'
|
| 'row'
|
||||||
| 'column'
|
| 'column'
|
||||||
| 'row-reverse'
|
| 'row-reverse'
|
||||||
| 'column-reverse'
|
| 'column-reverse';
|
||||||
| undefined;
|
|
||||||
};
|
};
|
||||||
// Ensure the Box has no props other than the default ones and key.
|
// Ensure the Box has no props other than the default ones and key.
|
||||||
let maxExpectedProps = 4;
|
let maxExpectedProps = 4;
|
||||||
|
|||||||
@@ -53,8 +53,8 @@ export type ContentGeneratorConfig = {
|
|||||||
model: string;
|
model: string;
|
||||||
apiKey?: string;
|
apiKey?: string;
|
||||||
vertexai?: boolean;
|
vertexai?: boolean;
|
||||||
authType?: AuthType | undefined;
|
authType?: AuthType;
|
||||||
proxy?: string | undefined;
|
proxy?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export function createContentGeneratorConfig(
|
export function createContentGeneratorConfig(
|
||||||
|
|||||||
Reference in New Issue
Block a user