function parsePagePath
parsePagePath(pathname: string): PagePath | null

Returns what a page path under a user names: a profile (with its tab), a dump or a playlist (or its editor). It returns null for any other path, a feed or an app page, and for one under a user that no page answers. The names are decoded but not looked up, so the user or the item may not exist.

Parameters

pathname: string

Return Type

PagePath | null

Usage

import { parsePagePath } from "shared/paths.ts";