@univerjs/engine-formula 0.20.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,6 +14,10 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import type { NumericTuple } from '@flatten-js/interval-tree';
17
+ import type { ErrorType } from './error-type';
18
+ type ValueType = string | number | boolean;
19
+ type ValueTypeWithNullUndefined = ValueType | null | undefined;
20
+ type ValueTypeWithSymbol = ValueType | symbol;
17
21
  export declare const DEFAULT_EMPTY_CELL_KEY: unique symbol;
18
22
  export declare class InvertedIndexCache {
19
23
  /**
@@ -30,9 +34,12 @@ export declare class InvertedIndexCache {
30
34
  */
31
35
  private _cache;
32
36
  private _continueBuildingCache;
33
- set(unitId: string, sheetId: string, column: number, value: string | number | boolean | null | symbol, row: number, isForceUpdate?: boolean): void;
34
- getCellValuePositions(unitId: string, sheetId: string, column: number): Map<string | number | boolean | symbol | null, Set<number>> | undefined;
35
- getCellPositions(unitId: string, sheetId: string, column: number, value: string | number | boolean | null | symbol, rowsInCache: NumericTuple[]): number[] | undefined;
37
+ set(unitId: string, sheetId: string, column: number, value: ValueTypeWithNullUndefined, row: number, isForceUpdate?: boolean): void;
38
+ getCellValuePositions(unitId: string, sheetId: string, column: number): Map<ValueTypeWithSymbol, Set<number>> | undefined;
39
+ getCellPositions(unitId: string, sheetId: string, column: number, value: ValueTypeWithNullUndefined, rowsInCache: NumericTuple[]): {
40
+ errorType: ErrorType | null;
41
+ matchingRows: number[];
42
+ } | undefined;
36
43
  setContinueBuildingCache(unitId: string, sheetId: string, column: number, startRow: number, endRow: number): void;
37
44
  shouldContinueBuildingCache(unitId: string, sheetId: string, column: number, row: number): boolean;
38
45
  canUseCache(unitId: string, sheetId: string, column: number, rangeStartRow: number, rangeEndRow: number): {
@@ -43,3 +50,4 @@ export declare class InvertedIndexCache {
43
50
  private _handleNewInterval;
44
51
  }
45
52
  export declare const CELL_INVERTED_INDEX_CACHE: InvertedIndexCache;
53
+ export {};