refactor: remove redundant 'undefined' type or '?' (#2691)

This commit is contained in:
Noritaka Kobayashi
2025-08-30 04:33:12 +09:00
committed by GitHub
parent 421f989faf
commit da22deac17
2 changed files with 4 additions and 5 deletions

View File

@@ -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;

View File

@@ -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(