master @ 14 LINES
[ HISTORY ] [ UP ]
┌─ TS ───────────────────────────────────────────────────────────────────────┐
│ import { kv, rule } from "../../lib/ascii"; │
│ │
│ export interface Props { │
│ width?: number; │
│ seeAlso?: string[]; │
│ } │
│ │
│ export function buildSeeAlso(width: number, refs: string[]): string { │
│ const out: string[] = [rule(width)]; │
│ out.push(kv("SEE ALSO", refs[0], 12, width)); │
│ for (const s of refs.slice(1)) out.push(kv("", s, 12, width)); │
│ return out.join("\n"); │
│ } │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ TS ─────────────────────────────────┐
│ import { kv, rule } from "../../lib/ascii"; │
│ │
│ export interface Props { │
│ width?: number; │
│ seeAlso?: string[]; │
│ } │
│ │
│ export function buildSeeAlso(width: number, │
│ refs: string[]): string { │
│ const out: string[] = [rule(width)]; │
│ out.push(kv("SEE ALSO", refs[0], 12, width │
│ )); │
│ for (const s of refs.slice(1)) out.push(kv │
│ ("", s, 12, width)); │
│ return out.join("\n"); │
│ } │
└──────────────────────────────────────────────┘
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET