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
@@ -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;
+2 -2
View File
@@ -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(