videosphere
    Preparing search index...

    Function parseDraftLabelLibraryFromRequestBody

    • Validates a user's saved draft label library from API input. Accepts legacy string entries and { name, color } objects.

      Parameters

      • value: unknown

        Raw request body field.

      Returns { ok: true; value: DraftLabelDefinition[] } | { ok: false; error: string }

      Parsed library or a validation error message.