Fix TypeScript strict null check errors
Add optional chaining and null checks in build scripts to handle potentially undefined array elements. Add style prop to Card, Badge, and Placeholder components, and onClick prop to Text component to support inline styling in screen components. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,8 +60,8 @@ function extractStepDefinitions(): StepDefinition[] {
|
||||
function extractFunctionBody(lines: string[], startLine: number): string {
|
||||
// Look for the closing }); which marks the end of a step definition
|
||||
for (let i = startLine; i < lines.length; i++) {
|
||||
const line = lines[i].trim();
|
||||
if (line === '});' || line.endsWith('});')) {
|
||||
const line = lines[i]?.trim();
|
||||
if (line === '});' || line?.endsWith('});')) {
|
||||
const extracted = lines.slice(startLine, i + 1);
|
||||
return extracted.join('\n');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user