맥스그리드 API 레퍼런스
    Preparing search index...

    Interface SaveResult<TRow>

    저장 핸들러의 결과. 아무것도 돌려주지 않으면 전체 성공이다.

    interface SaveResult<TRow> {
        failed?: readonly { key: RowKey; message: string }[];
        ok?: readonly (RowKey | { key: RowKey; row?: TRow })[];
    }

    Type Parameters

    • TRow
    Index
    failed?: readonly { key: RowKey; message: string }[]

    실패한 행. 변경으로 남고 오류가 표시된다. ok보다 우선한다.

    ok?: readonly (RowKey | { key: RowKey; row?: TRow })[]

    성공한 행. row를 주면 서버가 확정한 행(새 키·계산값 포함)으로 바꾼다. 생략한 키는 성공으로 본다.