fix(client): update TypeScript 6 compatibility (#27815)