Skip to content

Commit 2ffb12d

Browse files
committed
[hygiene] Prettier changes
1 parent 907dece commit 2ffb12d

File tree

3 files changed

+52
-60
lines changed

3 files changed

+52
-60
lines changed

src/types/with-schemas/internal/queries.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ export type JoinedCellIdOrId<
88
JoinedTableId extends TableIdFromSchema<Schema> | Id =
99
| TableIdFromSchema<Schema>
1010
| Id,
11-
> = JoinedTableId extends TableIdFromSchema<Schema>
12-
? CellIdFromSchema<Schema, JoinedTableId>
13-
: Id;
11+
> =
12+
JoinedTableId extends TableIdFromSchema<Schema>
13+
? CellIdFromSchema<Schema, JoinedTableId>
14+
: Id;
1415

1516
export type GetResultCell = (cellId: Id) => ResultCell;

src/types/with-schemas/internal/store.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ export type DefaultCellIdFromSchema<
3434
export type AllCellIdFromSchema<
3535
Schema extends OptionalTablesSchema,
3636
TableId extends TableIdFromSchema<Schema> = TableIdFromSchema<Schema>,
37-
> = TableId extends TableIdFromSchema<Schema>
38-
? CellIdFromSchema<Schema, TableId>
39-
: never;
37+
> =
38+
TableId extends TableIdFromSchema<Schema>
39+
? CellIdFromSchema<Schema, TableId>
40+
: never;
4041

4142
export type CellIsDefaultedFromSchema<
4243
Schema extends OptionalTablesSchema,

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

Lines changed: 44 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,8 @@ export type Cell<TId extends TableId, CId extends CellId<TId>> = NonNullable<
7070
/**
7171
* Cell Ids and types in a Row.
7272
*/
73-
type CellIdCellArray<
74-
TId extends TableId,
75-
CId = CellId<TId>,
76-
> = CId extends CellId<TId> ? [cellId: CId, cell: Cell<TId, CId>] : never;
73+
type CellIdCellArray<TId extends TableId, CId = CellId<TId>> =
74+
CId extends CellId<TId> ? [cellId: CId, cell: Cell<TId, CId>] : never;
7775

7876
/**
7977
* A function that takes a Cell Id, and Cell.
@@ -174,9 +172,10 @@ export type TableCellIdsListener = (s: S, tableId: TableId) => void;
174172
type HasTableCellListenerArgsArrayInner<
175173
TId extends TableId,
176174
CId = CellId<TId>,
177-
> = CId extends CellId<TId>
178-
? [s: S, tableId: TId, cellId: CId, hasTableCell: boolean]
179-
: never;
175+
> =
176+
CId extends CellId<TId>
177+
? [s: S, tableId: TId, cellId: CId, hasTableCell: boolean]
178+
: never;
180179

181180
/**
182181
* Table args for HasTableCellListener.
@@ -244,12 +243,10 @@ export type CellIdsListener = (s: S, tableId: TableId, rowId: Id) => void;
244243
/**
245244
* Cell args for HasCellListener.
246245
*/
247-
type HasCellListenerArgsArrayInner<
248-
TId extends TableId,
249-
CId = CellId<TId>,
250-
> = CId extends CellId<TId>
251-
? [s: S, tableId: TId, rowId: Id, cellId: CId, hasCell: boolean]
252-
: never;
246+
type HasCellListenerArgsArrayInner<TId extends TableId, CId = CellId<TId>> =
247+
CId extends CellId<TId>
248+
? [s: S, tableId: TId, rowId: Id, cellId: CId, hasCell: boolean]
249+
: never;
253250

254251
/**
255252
* Table args for HasCellListener.
@@ -268,20 +265,18 @@ export type HasCellListener = (
268265
/**
269266
* Cell args for CellListener.
270267
*/
271-
type CellListenerArgsArrayInner<
272-
TId extends TableId,
273-
CId = CellId<TId>,
274-
> = CId extends CellId<TId>
275-
? [
276-
s: S,
277-
tableId: TId,
278-
rowId: Id,
279-
cellId: CId,
280-
newCell: Cell<TId, CId> | undefined,
281-
oldCell: Cell<TId, CId> | undefined,
282-
getCellChange: GetCellChange | undefined,
283-
]
284-
: never;
268+
type CellListenerArgsArrayInner<TId extends TableId, CId = CellId<TId>> =
269+
CId extends CellId<TId>
270+
? [
271+
s: S,
272+
tableId: TId,
273+
rowId: Id,
274+
cellId: CId,
275+
newCell: Cell<TId, CId> | undefined,
276+
oldCell: Cell<TId, CId> | undefined,
277+
getCellChange: GetCellChange | undefined,
278+
]
279+
: never;
285280

286281
/**
287282
* Table args for CellListener.
@@ -5407,10 +5402,8 @@ export type Cell<TId extends TableId, CId extends CellId<TId>> = NonNullable<
54075402
/**
54085403
* Cell Ids and types in a Row.
54095404
*/
5410-
type CellIdCellArray<
5411-
TId extends TableId,
5412-
CId = CellId<TId>,
5413-
> = CId extends CellId<TId> ? [cellId: CId, cell: Cell<TId, CId>] : never;
5405+
type CellIdCellArray<TId extends TableId, CId = CellId<TId>> =
5406+
CId extends CellId<TId> ? [cellId: CId, cell: Cell<TId, CId>] : never;
54145407

54155408
/**
54165409
* A function that takes a Cell Id, and Cell.
@@ -5511,9 +5504,10 @@ export type TableCellIdsListener = (s: S, tableId: TableId) => void;
55115504
type HasTableCellListenerArgsArrayInner<
55125505
TId extends TableId,
55135506
CId = CellId<TId>,
5514-
> = CId extends CellId<TId>
5515-
? [s: S, tableId: TId, cellId: CId, hasTableCell: boolean]
5516-
: never;
5507+
> =
5508+
CId extends CellId<TId>
5509+
? [s: S, tableId: TId, cellId: CId, hasTableCell: boolean]
5510+
: never;
55175511

55185512
/**
55195513
* Table args for HasTableCellListener.
@@ -5581,12 +5575,10 @@ export type CellIdsListener = (s: S, tableId: TableId, rowId: Id) => void;
55815575
/**
55825576
* Cell args for HasCellListener.
55835577
*/
5584-
type HasCellListenerArgsArrayInner<
5585-
TId extends TableId,
5586-
CId = CellId<TId>,
5587-
> = CId extends CellId<TId>
5588-
? [s: S, tableId: TId, rowId: Id, cellId: CId, hasCell: boolean]
5589-
: never;
5578+
type HasCellListenerArgsArrayInner<TId extends TableId, CId = CellId<TId>> =
5579+
CId extends CellId<TId>
5580+
? [s: S, tableId: TId, rowId: Id, cellId: CId, hasCell: boolean]
5581+
: never;
55905582

55915583
/**
55925584
* Table args for HasCellListener.
@@ -5605,20 +5597,18 @@ export type HasCellListener = (
56055597
/**
56065598
* Cell args for CellListener.
56075599
*/
5608-
type CellListenerArgsArrayInner<
5609-
TId extends TableId,
5610-
CId = CellId<TId>,
5611-
> = CId extends CellId<TId>
5612-
? [
5613-
s: S,
5614-
tableId: TId,
5615-
rowId: Id,
5616-
cellId: CId,
5617-
newCell: Cell<TId, CId> | undefined,
5618-
oldCell: Cell<TId, CId> | undefined,
5619-
getCellChange: GetCellChange | undefined,
5620-
]
5621-
: never;
5600+
type CellListenerArgsArrayInner<TId extends TableId, CId = CellId<TId>> =
5601+
CId extends CellId<TId>
5602+
? [
5603+
s: S,
5604+
tableId: TId,
5605+
rowId: Id,
5606+
cellId: CId,
5607+
newCell: Cell<TId, CId> | undefined,
5608+
oldCell: Cell<TId, CId> | undefined,
5609+
getCellChange: GetCellChange | undefined,
5610+
]
5611+
: never;
56225612

56235613
/**
56245614
* Table args for CellListener.

0 commit comments

Comments
 (0)