Skip to content

Commit

Permalink
fix: skip object field argument assertion if the argument is inaccess…
Browse files Browse the repository at this point in the history
…ible
  • Loading branch information
n1ru4l committed Jan 8, 2024
1 parent 78b56db commit 3501481
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ export function DefaultValueUsesInaccessibleRule(
return;
}

if (argState.inaccessible) {
return;
}

detectInaccessibleDefaultValue(
context,
() => `${objectState.name}.${fieldState.name}(${argState.name}:)`,
Expand Down

0 comments on commit 3501481

Please sign in to comment.