⬅️ Back to Table of Contents
📄 DependencyConstraint.ts
📊 Analysis Summary
Metric |
Count |
📐 Interfaces |
2 |
📑 Type Aliases |
3 |
📚 Table of Contents
🛠️ File Location:
📂 packages/rule-tester/src/types/DependencyConstraint.ts
Interfaces
RangeOptions
Interface Code
export interface RangeOptions {
includePrerelease?: boolean | undefined;
loose?: boolean | undefined;
}
Properties
Name |
Type |
Optional |
Description |
includePrerelease |
boolean | undefined |
✓ |
|
loose |
boolean | undefined |
✓ |
|
SemverVersionConstraint
Interface Code
export interface SemverVersionConstraint {
readonly options?: boolean | RangeOptions;
readonly range: string;
}
Properties
Name |
Type |
Optional |
Description |
options |
boolean | RangeOptions |
✓ |
|
range |
string |
✗ |
|
Type Aliases
AtLeastVersionConstraint
type AtLeastVersionConstraint = | `${number}.${number}.${number}-${string}`
| `${number}.${number}.${number}`
| `${number}.${number}`
| `${number}`;
VersionConstraint
type VersionConstraint = | AtLeastVersionConstraint
| SemverVersionConstraint;
DependencyConstraint
/*
* Passing a string for the value is shorthand for a '>=' constraint
/
type DependencyConstraint = Readonly<Record<string, VersionConstraint>>;