@maschinenlesbar.org/strahlenschutz-cli
    Preparing search index...

    Function oneOfProblem

    • A value must be one of allowed, as a token: a string is checked with tokenProblem (not blank, no invisible, control or half character, quoted visibly), then trimmed and in NFC (normalizeToken) and looked up, so " ts-24h " is ts-24h (the caller sends normalizeToken(value)). Case is not folded: TS-1H is refused. Checked with includes() on the value list, never by a keyed table lookup, so inherited names such as __proto__, toString or constructor are rejected too.

      Parameters

      • allowed: readonly string[]

      Returns Problem<unknown>