refs-param.ts
This file
Path
apps/web/src/features/code/refs-param.ts
10 lines · 342 bytes · TypeScript
Last changed by
Fold every page's project events once, keep Markdown off the first load, and cache what never changesoscabrielbefore adoption38e5215
History of this fileTake it
Fold every page's project events once, keep Markdown off the first load, and cache what never changesoscabrielbefore adoption38e5215
lines 1–10why, one step back1/**2 * The refs page's `?package=`, decoded where the route reads it, in a3 * module with no view of its own.4 */5import { Schema } from "effect";67/** A `?package=` from the address, decoded; none for anything but a name. */8export const packageParamOf = Schema.decodeUnknownOption(9 Schema.NonEmptyString.check(Schema.isMaxLength(255))10);