streaksheet
Advanced tools
Comparing version 0.8.4 to 0.8.5
@@ -14,3 +14,3 @@ import { RowsBySection, StartedRowsRequests } from './internalTypes'; | ||
rowsBySection: RowsBySection<T>; | ||
addRowData(sectionKey: string, rowKey: string, rowData: T, afterRowKey: string): boolean; | ||
addRowData(sectionKey: string, rowKey: string, rowData: T, afterRowKey?: string): boolean; | ||
deleteRowData(sectionKey: string, rowKey: string): boolean; | ||
@@ -28,3 +28,3 @@ setRowData(rowKey: string, rowData: T): void; | ||
rowData: T; | ||
afterRowKey: string; | ||
afterRowKey?: string; | ||
} | ||
@@ -31,0 +31,0 @@ interface RowDeleteMutation { |
@@ -469,3 +469,3 @@ "use strict"; | ||
{ | ||
if (droppedKeysSet.has(mutation.afterRowKey) && mutation.sectionKey === sectionKey) { | ||
if (mutation.afterRowKey && droppedKeysSet.has(mutation.afterRowKey) && mutation.sectionKey === sectionKey) { | ||
return false; | ||
@@ -472,0 +472,0 @@ } |
@@ -94,3 +94,3 @@ /// <reference types="react" /> | ||
export interface SheetData<T> { | ||
addRowData(sectionKey: string, rowKey: string, rowData: T, afterRowKey: string): boolean; | ||
addRowData(sectionKey: string, rowKey: string, rowData: T, afterRowKey?: string): boolean; | ||
columnAndOverviewData: ColumnAndOverviewData; | ||
@@ -97,0 +97,0 @@ deleteRowData(sectionKey: string, rowKey: string): boolean; |
{ | ||
"name": "streaksheet", | ||
"version": "0.8.4", | ||
"version": "0.8.5", | ||
"author": "Chris Cowan <agentme49@gmail.com>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
588493