TierIdtypeno test imports ittype TierId = "reader" | "writer";The names of the tiers, lowest first: a closed union.
The audience tiers of the anyfs program (commons headless 0010-audience-tiers): two, lowest first. reader sees what only reads (ls, cat, find, check, places and the rest); writer also sees what changes a store. The tier is a fact of whoever runs the program (the variable ANYFS_TIER, the key of a tool server), never a word of a message; a caller who says nothing is a writer, the person at their own terminal.
import { LADDER, tierOf } from "./tiers.ts";
LADDER.ladder.length; // 2
tierOf("reader") === LADDER.ladder[0]; // trueTierIdtypeno test imports ittype TierId = "reader" | "writer";The names of the tiers, lowest first: a closed union.
TIER_IDSconstconst TIER_IDS: readonly TierId[]Every tier, lowest first.
TIERSconstconst TIERS: Readonly<Record<TierId, TierName>>The two tiers as headless' tier names.
LADDERconstconst LADDER: TierLadderThe ladder of the program.
tierOffunctionfunction tierOf(word: string): TierName | undefinedThe tier named by a word, or undefined where the word is none of the two.