Skip to content

Commit 899d981

Browse files
committed
refactor(plugin-grid): read NODE_ENV in the undeclared-name warning without an any cast
Claude-Session: https://claude.ai/code/session_01Utp6CZ1rxZPzain2p5bv5x Co-authored-by: Claude <noreply@anthropic.com>
1 parent 6962044 commit 899d981

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/packages/plugin-grid/src/undeclaredActionNames.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export function describeUndeclaredActionNames(
6868
}
6969

7070
function isDevelopment(): boolean {
71-
return (globalThis as any).process?.env?.NODE_ENV !== 'production';
71+
const env = (globalThis as { process?: { env?: { NODE_ENV?: string } } }).process?.env;
72+
return env?.NODE_ENV !== 'production';
7273
}
7374

7475
/**

0 commit comments

Comments
 (0)