Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

TypeScript · 13 lines · 338 B · at 8396947

export class SemverError extends Error {  constructor(    public readonly kind: "invalid_version",    public readonly input: string,  ) {    super(`${kind}: ${input}`);  }}/** Throws SemverError when either version is invalid (a is checked first). */export function compareSemver(a: string, b: string): -1 | 0 | 1 {  // TODO}