Skip to content

Commit 82a435b

Browse files
committed
fix(types): update typescript types for 5.3.0
1 parent fc47d81 commit 82a435b

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

npm/syncpack.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ namespace VersionGroup {
149149
/** @see https://syncpack.dev/version-groups/same-range/#severity */
150150
severity?: { SemverRangeMismatch?: Severity };
151151
}
152+
export interface SemverRangeOnly extends GroupSelector {
153+
/** @see https://syncpack.dev/version-groups/range-only/#policy */
154+
policy: 'semverRangeOnly';
155+
/** @see https://syncpack.dev/version-groups/range-only/#severity */
156+
severity?: { SemverRangeMismatch?: Severity };
157+
}
152158
export interface SameMinor extends GroupSelector {
153159
/** @see https://syncpack.dev/version-groups/same-minor/#policy */
154160
policy: 'sameMinor';
@@ -180,7 +186,16 @@ namespace VersionGroup {
180186
MissingFromCatalog?: Severity;
181187
};
182188
}
183-
export type Any = Banned | Catalog | Ignored | Pinned | SameRange | SameMinor | SnappedTo | Standard;
189+
export type Any =
190+
| Banned
191+
| Catalog
192+
| Ignored
193+
| Pinned
194+
| SameRange
195+
| SameMinor
196+
| SemverRangeOnly
197+
| SnappedTo
198+
| Standard;
184199
}
185200

186201
namespace CustomType {
@@ -295,6 +310,7 @@ export type VersionGroupVariant =
295310
| 'Pinned'
296311
| 'SameRange'
297312
| 'SameMinor'
313+
| 'SemverRangeOnly'
298314
| 'SnappedTo';
299315

300316
export type StatusCode =
@@ -309,6 +325,7 @@ export type StatusCode =
309325
| 'SatisfiesLocal'
310326
| 'SatisfiesSameRangeGroup'
311327
| 'SatisfiesSameMinorGroup'
328+
| 'MatchesSemverGroup'
312329
| 'SatisfiesSnapTarget'
313330
| 'DiffersToCatalog'
314331
| 'DiffersToHighestOrLowestSemver'

0 commit comments

Comments
 (0)