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
1234567891011/** * The refs page's `?package=`, decoded where the route reads it, in a * module with no view of its own. */import { Schema } from "effect";
/** A `?package=` from the address, decoded; none for anything but a name. */export const packageParamOf = Schema.decodeUnknownOption( Schema.NonEmptyString.check(Schema.isMaxLength(255)));