Skip to content

Commit

Permalink
fix: wrong parameter type (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
  • Loading branch information
RahulGautamSingh and viceice authored Jan 13, 2022
1 parent 160be84 commit 125d0a5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions lib/shared.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ export interface Pep440Constraint {
prefix: string;
version: string;
}
export interface Pep440SpecifierOptions {
prereleases?: boolean;
}

export interface Pep440Version {
public: string;
base_version: string;
Expand Down
18 changes: 13 additions & 5 deletions lib/specifier.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
import type { Pep440Version, Pep440Constraint } from "./shared";
import type { Pep440Constraint, Pep440SpecifierOptions } from "./shared";

export const RANGE_PATTERN: string;

export function filter(versions: string[], range: string): string[];
export function filter(
versions: string[],
specifier: string,
options?: Pep440SpecifierOptions
): string[];
export function maxSatisfying(
versions: string[],
specifier: string,
options: Pep440Version
options?: Pep440SpecifierOptions
): string | null;
export function minSatisfying(
versions: string[],
specifier: string,
options: Pep440Version
options?: Pep440SpecifierOptions
): string | null;
export function parse(ranges: string): Pep440Constraint[]; // have doubts regarding this which need to be discussed
export function satisfies(version: string, specifier: string): boolean;
export function satisfies(
version: string,
specifier: string,
options?: Pep440SpecifierOptions
): boolean;
export function validRange(specifier: string): boolean;

0 comments on commit 125d0a5

Please sign in to comment.