type alias PagePath

Returned by parsePagePath for a path under a user. rest holds the segments after /@name, a profile tab and its view.

Definition

{ kind: "user"; username: string; rest: string[]; }
| { kind: "dump"; username: string; slug: string; edit: boolean; }
| { kind: "playlist"; username: string; slug: string; edit: boolean; }

Usage

import { type PagePath } from "shared/paths.ts";