Skip to content

DependencyConstraint

A version constraint such as the (>= 2.34) of libc6 (>= 2.34), with the operator spelled as the format spells it.

Available since v3.1.10

import type { DependencyConstraint } from '@helpers4/package';
// or, from the all-in-one package (same code, one install):
import type { DependencyConstraint } from 'helpers4/package';
interface DependencyConstraint<Operator extends string = string> {
  operator: Operator;
  version: string;
}

View source on GitHub