type alias ListingSource

Where the packages of a ScopeListing came from.

  • network — freshly fetched from JSR.
  • cache — a cached listing still inside its TTL; no request was made.
  • stale-cache — the request failed and an expired cache answered instead.
  • none — nothing was available; packages is empty.

Definition

"network" | "cache" | "stale-cache" | "none"

Usage

import { type ListingSource } from "mod.ts";