iya-sts
    Preparing search index...

    Variable parseAs

    parseAs: (key: any, raw: any) => any = parseAs

    Type Declaration

      • (key: any, raw: any): any
      • Parses a value that came from none of the five layers — a directory attribute, say — with the same checks the console and API run.

        Parameters

        • key: any

          the setting's key

        • raw: any

          the value as text

        Returns any

        { ok: true, value }, or { ok: false, problem } carrying its code; never thrown