You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(validation): refactor type assertions to proper type guards in structural-class validation
Replace 'as number | undefined' and 'as string | undefined' type assertions with
proper typeof checks to improve type safety and comply with no-assertion policy.
Changes:
- permutationValue: typeof value === "number" ? value : 0
- topologicalOrder: typeof value === "number" ? value : 0
- perfectClass: value === perfectClass && typeof value === "string"
0 commit comments