mirror of
https://github.com/morluto/rea.git
synced 2026-12-01 11:01:11 +00:00
Co-authored-by: ShuaixinHuang <197200901+ShuaixinHuang@users.noreply.github.com>
18 lines
647 B
TypeScript
18 lines
647 B
TypeScript
import type { NpmReleaseState } from "./npm-release-state.mjs";
|
|
|
|
export function readNpmRelease(
|
|
version: string,
|
|
request?: (url: string, init: RequestInit) => Promise<Response>,
|
|
): Promise<NpmReleaseState>;
|
|
export function stableUpdateVersion(
|
|
version: string,
|
|
published: NpmReleaseState,
|
|
options?: { allowSuperseded?: boolean },
|
|
): string;
|
|
export function waitForNpmRelease(
|
|
version: string,
|
|
lookup?: (version: string, signal: AbortSignal) => Promise<NpmReleaseState>,
|
|
pause?: (milliseconds: number, signal: AbortSignal) => Promise<unknown>,
|
|
signal?: AbortSignal,
|
|
): Promise<Extract<NpmReleaseState, { status: "published" }>>;
|