Skip to content

Commit

Permalink
doc(types): swaps the comments for via and viaOnly
Browse files Browse the repository at this point in the history
so the descriptions actually match the attribute
  • Loading branch information
sverweij committed Dec 26, 2023
1 parent 7af8569 commit 52dee75
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions types/restrictions.d.mts
Expand Up @@ -61,13 +61,6 @@ export interface IToRestriction extends IBaseRestrictionType {
* Whether or not to match when following to the to will ultimately end up in the from.
*/
circular?: boolean;
/**
* "For circular dependencies - whether or not to match cycles that include
* exclusively modules with this regular expression. This is different from
* the regular via that already matches when only some of the modules in the
* cycle satisfy the regular expression
*/
via?: MiniDependencyRestrictionType;
/**
* For circular dependencies - whether or not to match cycles that include
* some modules with this regular expression. If you want to match cycles that
Expand All @@ -78,6 +71,13 @@ export interface IToRestriction extends IBaseRestrictionType {
* disallow some cycles with a lower severity - setting up a rule with a via
* that ignores them in an 'allowed' section.
*/
via?: MiniDependencyRestrictionType;
/**
* "For circular dependencies - whether or not to match cycles that include
* exclusively modules with this regular expression. This is different from
* the regular via that already matches when only some of the modules in the
* cycle satisfy the regular expression
*/
viaOnly?: MiniDependencyRestrictionType;
/**
* For circular dependencies - whether or not to match cycles that include
Expand Down

0 comments on commit 52dee75

Please sign in to comment.