699.0.0 • Published 3 years ago

@rollingversions/tag-format-canary v699.0.0

Weekly downloads
8
License
-
Repository
-
Last release
3 years ago

@rollingversions/tag-format

API

export interface PrintTagContext {
  packageName: string;
  oldTagName: string | null;
  versionSchema: readonly string[];
  tagFormat: string | undefined;
}
export declare function printTag(
  version: VersionNumber,
  ctx: PrintTagContext,
): string;

export interface ParseTagContext {
  allowTagsWithoutPackageName: boolean;
  packageName: string;
  versionSchema: readonly string[];
  tagFormat: string | undefined;
}
export declare function parseTag(
  tagName: string,
  ctx: ParseTagContext,
): VersionNumber | null;