Skip to content

Commit a4d6e23

Browse files
committed
[tests] Update snapshots
1 parent cb18f1f commit a4d6e23

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

test/unit/__snapshots__/tools.test.ts.snap

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ export interface S {
460460
/**
461461
* Add a new Row to the 't1' Table.
462462
*/
463-
addT1Row(row: T1RowWhenSet): Id | undefined;
463+
addT1Row(row: T1RowWhenSet, reuseIds?: boolean): Id | undefined;
464464

465465
/**
466466
* Gets the Ids of the Cells in the specified Row in the 't1' Table.
@@ -1017,7 +1017,8 @@ export const createS: typeof createSDecl = () => {
10171017
setT1PartialRow: (rowId: Id, partialRow: T1RowWhenSet): S =>
10181018
fluent(() => store.setPartialRow(T1, rowId, partialRow)),
10191019

1020-
addT1Row: (row: T1RowWhenSet): Id | undefined => store.addRow(T1, row),
1020+
addT1Row: (row: T1RowWhenSet, reuseIds?: boolean): Id | undefined =>
1021+
store.addRow(T1, row, reuseIds),
10211022

10221023
getT1CellIds: (rowId: Id): T1CellId[] =>
10231024
store.getCellIds(T1, rowId) as T1CellId[],
@@ -1531,6 +1532,7 @@ export function useAddT1RowCallback<Parameter>(
15311532
sOrSId?: SOrSId,
15321533
then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void,
15331534
thenDeps?: React.DependencyList,
1535+
reuseRowIds?: boolean,
15341536
): ParameterizedCallback<Parameter>;
15351537

15361538
/**
@@ -2487,12 +2489,13 @@ export const useAddT1RowCallback: typeof useAddT1RowCallbackDecl = <Parameter,>(
24872489
sOrSId?: SOrSId,
24882490
then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void,
24892491
thenDeps?: React.DependencyList,
2492+
reuseRowIds?: boolean,
24902493
): ParameterizedCallback<Parameter> =>
24912494
useHook(
24922495
sOrSId,
24932496
useAddRowCallbackCore,
24942497
[T1, getRow, getRowDeps],
2495-
[then, thenDeps],
2498+
[then, thenDeps, reuseRowIds],
24962499
);
24972500

24982501
export const useSetT1PartialRowCallback: typeof useSetT1PartialRowCallbackDecl =
@@ -4618,7 +4621,7 @@ export interface S {
46184621
/**
46194622
* Add a new Row to the 't1' Table.
46204623
*/
4621-
addT1Row(row: T1RowWhenSet): Id | undefined;
4624+
addT1Row(row: T1RowWhenSet, reuseIds?: boolean): Id | undefined;
46224625

46234626
/**
46244627
* Gets the Ids of the Cells in the specified Row in the 't1' Table.
@@ -4997,7 +5000,8 @@ export const createS: typeof createSDecl = () => {
49975000
setT1PartialRow: (rowId: Id, partialRow: T1RowWhenSet): S =>
49985001
fluent(() => store.setPartialRow(T1, rowId, partialRow)),
49995002

5000-
addT1Row: (row: T1RowWhenSet): Id | undefined => store.addRow(T1, row),
5003+
addT1Row: (row: T1RowWhenSet, reuseIds?: boolean): Id | undefined =>
5004+
store.addRow(T1, row, reuseIds),
50015005

50025006
getT1CellIds: (rowId: Id): T1CellId[] =>
50035007
store.getCellIds(T1, rowId) as T1CellId[],
@@ -5406,6 +5410,7 @@ export function useAddT1RowCallback<Parameter>(
54065410
sOrSId?: SOrSId,
54075411
then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void,
54085412
thenDeps?: React.DependencyList,
5413+
reuseRowIds?: boolean,
54095414
): ParameterizedCallback<Parameter>;
54105415

54115416
/**
@@ -6073,12 +6078,13 @@ export const useAddT1RowCallback: typeof useAddT1RowCallbackDecl = <Parameter,>(
60736078
sOrSId?: SOrSId,
60746079
then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void,
60756080
thenDeps?: React.DependencyList,
6081+
reuseRowIds?: boolean,
60766082
): ParameterizedCallback<Parameter> =>
60776083
useHook(
60786084
sOrSId,
60796085
useAddRowCallbackCore,
60806086
[T1, getRow, getRowDeps],
6081-
[then, thenDeps],
6087+
[then, thenDeps, reuseRowIds],
60826088
);
60836089

60846090
export const useSetT1PartialRowCallback: typeof useSetT1PartialRowCallbackDecl =
@@ -6670,7 +6676,7 @@ delT1Row(rowId: Id): S;
66706676
setT1PartialRow(rowId: Id, partialRow: T1RowWhenSet): S;
66716677

66726678
/** Add a new Row to the 't1' Table. */
6673-
addT1Row(row: T1RowWhenSet): Id | undefined;
6679+
addT1Row(row: T1RowWhenSet, reuseIds?: boolean): Id | undefined;
66746680

66756681
/** Gets the Ids of the Cells in the specified Row in the 't1' Table. */
66766682
getT1CellIds(rowId: Id): T1CellId[];
@@ -6972,7 +6978,7 @@ delT1Row: (rowId: Id): S => fluent(() => store.delRow(T1, rowId)),
69726978

69736979
setT1PartialRow: (rowId: Id, partialRow: T1RowWhenSet): S => fluent(() => store.setPartialRow(T1, rowId, partialRow)),
69746980

6975-
addT1Row: (row: T1RowWhenSet): Id | undefined => store.addRow(T1, row),
6981+
addT1Row: (row: T1RowWhenSet, reuseIds?: boolean): Id | undefined => store.addRow(T1, row, reuseIds),
69766982

69776983
getT1CellIds: (rowId: Id): T1CellId[] => store.getCellIds(T1, rowId) as T1CellId[],
69786984

@@ -7192,7 +7198,7 @@ export function useDelT1TableCallback(sOrSId?: SOrSId, then?: (store: Store) =>
71927198
export function useSetT1RowCallback<Parameter,>(rowId: Id, getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter>;
71937199

71947200
/** Gets a callback that can add the content of the specified Row in the 't1' Table, based on a parameter. */
7195-
export function useAddT1RowCallback<Parameter,>(getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter>;
7201+
export function useAddT1RowCallback<Parameter,>(getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList, reuseRowIds?: boolean): ParameterizedCallback<Parameter>;
71967202

71977203
/** Gets a callback that can set part of the content of the specified Row in the 't1' Table, based on a parameter. */
71987204
export function useSetT1PartialRowCallback<Parameter,>(rowId: Id, getPartialRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getPartialRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (store: Store, partialRow: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter>;
@@ -7484,8 +7490,8 @@ useHook(sOrSId, useDelTableCallbackCore, [T1], [then, thenDeps]);
74847490
export const useSetT1RowCallback: typeof useSetT1RowCallbackDecl = <Parameter,>(rowId: Id, getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter> =>
74857491
useHook(sOrSId, useSetRowCallbackCore, [T1, rowId, getRow, getRowDeps], [then, thenDeps]);
74867492

7487-
export const useAddT1RowCallback: typeof useAddT1RowCallbackDecl = <Parameter,>(getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter> =>
7488-
useHook(sOrSId, useAddRowCallbackCore, [T1, getRow, getRowDeps], [then, thenDeps]);
7493+
export const useAddT1RowCallback: typeof useAddT1RowCallbackDecl = <Parameter,>(getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList, reuseRowIds?: boolean): ParameterizedCallback<Parameter> =>
7494+
useHook(sOrSId, useAddRowCallbackCore, [T1, getRow, getRowDeps], [then, thenDeps, reuseRowIds]);
74897495

74907496
export const useSetT1PartialRowCallback: typeof useSetT1PartialRowCallbackDecl = <Parameter,>(rowId: Id, getPartialRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getPartialRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (store: Store, partialRow: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter> =>
74917497
useHook(sOrSId, useSetPartialRowCallbackCore, [T1, rowId, getPartialRow, getPartialRowDeps], [then, thenDeps]);
@@ -8398,7 +8404,7 @@ delT1Row(rowId: Id): S;
83988404
setT1PartialRow(rowId: Id, partialRow: T1RowWhenSet): S;
83998405

84008406
/** Add a new Row to the 't1' Table. */
8401-
addT1Row(row: T1RowWhenSet): Id | undefined;
8407+
addT1Row(row: T1RowWhenSet, reuseIds?: boolean): Id | undefined;
84028408

84038409
/** Gets the Ids of the Cells in the specified Row in the 't1' Table. */
84048410
getT1CellIds(rowId: Id): T1CellId[];
@@ -8601,7 +8607,7 @@ delT1Row: (rowId: Id): S => fluent(() => store.delRow(T1, rowId)),
86018607

86028608
setT1PartialRow: (rowId: Id, partialRow: T1RowWhenSet): S => fluent(() => store.setPartialRow(T1, rowId, partialRow)),
86038609

8604-
addT1Row: (row: T1RowWhenSet): Id | undefined => store.addRow(T1, row),
8610+
addT1Row: (row: T1RowWhenSet, reuseIds?: boolean): Id | undefined => store.addRow(T1, row, reuseIds),
86058611

86068612
getT1CellIds: (rowId: Id): T1CellId[] => store.getCellIds(T1, rowId) as T1CellId[],
86078613

@@ -8757,7 +8763,7 @@ export function useDelT1TableCallback(sOrSId?: SOrSId, then?: (store: Store) =>
87578763
export function useSetT1RowCallback<Parameter,>(rowId: Id, getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter>;
87588764

87598765
/** Gets a callback that can add the content of the specified Row in the 't1' Table, based on a parameter. */
8760-
export function useAddT1RowCallback<Parameter,>(getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter>;
8766+
export function useAddT1RowCallback<Parameter,>(getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList, reuseRowIds?: boolean): ParameterizedCallback<Parameter>;
87618767

87628768
/** Gets a callback that can set part of the content of the specified Row in the 't1' Table, based on a parameter. */
87638769
export function useSetT1PartialRowCallback<Parameter,>(rowId: Id, getPartialRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getPartialRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (store: Store, partialRow: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter>;
@@ -8966,8 +8972,8 @@ useHook(sOrSId, useDelTableCallbackCore, [T1], [then, thenDeps]);
89668972
export const useSetT1RowCallback: typeof useSetT1RowCallbackDecl = <Parameter,>(rowId: Id, getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter> =>
89678973
useHook(sOrSId, useSetRowCallbackCore, [T1, rowId, getRow, getRowDeps], [then, thenDeps]);
89688974

8969-
export const useAddT1RowCallback: typeof useAddT1RowCallbackDecl = <Parameter,>(getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter> =>
8970-
useHook(sOrSId, useAddRowCallbackCore, [T1, getRow, getRowDeps], [then, thenDeps]);
8975+
export const useAddT1RowCallback: typeof useAddT1RowCallbackDecl = <Parameter,>(getRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (rowId: Id | undefined, store: Store, row: T1RowWhenSet) => void, thenDeps?: React.DependencyList, reuseRowIds?: boolean): ParameterizedCallback<Parameter> =>
8976+
useHook(sOrSId, useAddRowCallbackCore, [T1, getRow, getRowDeps], [then, thenDeps, reuseRowIds]);
89718977

89728978
export const useSetT1PartialRowCallback: typeof useSetT1PartialRowCallbackDecl = <Parameter,>(rowId: Id, getPartialRow: (parameter: Parameter, store: Store) => T1RowWhenSet, getPartialRowDeps?: React.DependencyList, sOrSId?: SOrSId, then?: (store: Store, partialRow: T1RowWhenSet) => void, thenDeps?: React.DependencyList): ParameterizedCallback<Parameter> =>
89738979
useHook(sOrSId, useSetPartialRowCallbackCore, [T1, rowId, getPartialRow, getPartialRowDeps], [then, thenDeps]);

0 commit comments

Comments
 (0)