Skip to content

Commit 9a91f9c

Browse files
committed
chore: unexpected formattings of prettier
1 parent d32691c commit 9a91f9c

File tree

12 files changed

+36
-40
lines changed

12 files changed

+36
-40
lines changed

packages/airtable-lib/src/airtableDB.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ export interface AirtableDBOptions extends CommonDBOptions {
6969
}
7070
export type AirtableDBStreamOptions = CommonDBStreamOptions
7171
export interface AirtableDBSaveOptions<ROW extends ObjectWithId>
72-
extends AirtableDBOptions, CommonDBSaveOptions<ROW> {}
72+
extends AirtableDBOptions,
73+
CommonDBSaveOptions<ROW> {}
7374

7475
/**
7576
* CommonDB implementation based on Airtable sheets.

packages/datastore-lib/src/datastore.model.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,8 @@ export interface DatastoreDBOptions extends CommonDBOptions {}
113113

114114
export interface DatastoreDBReadOptions extends CommonDBReadOptions {}
115115

116-
export interface DatastoreDBSaveOptions<
117-
ROW extends ObjectWithId,
118-
> extends CommonDBSaveOptions<ROW> {}
116+
export interface DatastoreDBSaveOptions<ROW extends ObjectWithId>
117+
extends CommonDBSaveOptions<ROW> {}
119118

120119
export interface DatastoreStats {
121120
composite_index_count: number

packages/db-lib/src/adapter/cachedb/cache.db.model.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ export interface CacheDBOptions extends CommonDBOptions {
6464
}
6565

6666
export interface CacheDBSaveOptions<ROW extends ObjectWithId>
67-
extends CacheDBOptions, CommonDBSaveOptions<ROW> {}
67+
extends CacheDBOptions,
68+
CommonDBSaveOptions<ROW> {}
6869

6970
export interface CacheDBStreamOptions extends CacheDBOptions, CommonDBStreamOptions {}
7071

packages/db-lib/src/commondao/common.dao.model.ts

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,8 @@ export interface CommonDaoReadOptions extends CommonDaoOptions {
282282
readAt?: UnixTimestamp
283283
}
284284

285-
export interface CommonDaoSaveOptions<
286-
BM extends BaseDBEntity,
287-
DBM extends BaseDBEntity,
288-
> extends CommonDaoSaveBatchOptions<DBM> {
285+
export interface CommonDaoSaveOptions<BM extends BaseDBEntity, DBM extends BaseDBEntity>
286+
extends CommonDaoSaveBatchOptions<DBM> {
289287
/**
290288
* If provided - a check will be made.
291289
* If the object for saving equals to the object passed to `skipIfEquals` - save operation will be skipped.
@@ -297,9 +295,8 @@ export interface CommonDaoSaveOptions<
297295
skipIfEquals?: BM
298296
}
299297

300-
export interface CommonDaoPatchByIdOptions<
301-
DBM extends BaseDBEntity,
302-
> extends CommonDaoSaveBatchOptions<DBM> {
298+
export interface CommonDaoPatchByIdOptions<DBM extends BaseDBEntity>
299+
extends CommonDaoSaveBatchOptions<DBM> {
303300
/**
304301
* Defaults to false.
305302
* With false, if the row doesn't exist - it will throw an error.
@@ -310,9 +307,8 @@ export interface CommonDaoPatchByIdOptions<
310307
createIfMissing?: boolean
311308
}
312309

313-
export interface CommonDaoPatchOptions<
314-
DBM extends BaseDBEntity,
315-
> extends CommonDaoSaveBatchOptions<DBM> {
310+
export interface CommonDaoPatchOptions<DBM extends BaseDBEntity>
311+
extends CommonDaoSaveBatchOptions<DBM> {
316312
/**
317313
* If true - patch will skip loading from DB, and will just optimistically patch passed object.
318314
*
@@ -325,7 +321,8 @@ export interface CommonDaoPatchOptions<
325321
* All properties default to undefined.
326322
*/
327323
export interface CommonDaoSaveBatchOptions<DBM extends BaseDBEntity>
328-
extends CommonDaoOptions, CommonDBSaveOptions<DBM> {
324+
extends CommonDaoOptions,
325+
CommonDBSaveOptions<DBM> {
329326
/**
330327
* @default false
331328
*
@@ -338,15 +335,16 @@ export interface CommonDaoSaveBatchOptions<DBM extends BaseDBEntity>
338335
// ensureUniqueId?: boolean // feature is currently disabled
339336
}
340337

341-
export interface CommonDaoStreamDeleteOptions<
342-
DBM extends BaseDBEntity,
343-
> extends CommonDaoStreamOptions<DBM> {}
338+
export interface CommonDaoStreamDeleteOptions<DBM extends BaseDBEntity>
339+
extends CommonDaoStreamOptions<DBM> {}
344340

345341
export interface CommonDaoStreamSaveOptions<DBM extends BaseDBEntity>
346-
extends CommonDaoSaveBatchOptions<DBM>, CommonDaoStreamOptions<DBM> {}
342+
extends CommonDaoSaveBatchOptions<DBM>,
343+
CommonDaoStreamOptions<DBM> {}
347344

348345
export interface CommonDaoStreamOptions<IN>
349-
extends CommonDaoReadOptions, TransformLogProgressOptions<IN> {
346+
extends CommonDaoReadOptions,
347+
TransformLogProgressOptions<IN> {
350348
/**
351349
* @default true (for streams)
352350
*/

packages/dev-lib/src/test/cfg/eslint.config.dump.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@",
2020
"@typescript-eslint:@typescript-eslint/[email protected]",
2121
"unicorn:[email protected]",
22-
22+
2323
2424
"import-x:[email protected]",
2525
"simple-import-sort:[email protected]"

packages/firestore-lib/src/firestore.db.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,7 @@ export interface FirestoreDBStreamOptions extends FirestoreDBReadOptions {
582582

583583
export interface FirestoreDBOptions extends CommonDBOptions {}
584584
export interface FirestoreDBReadOptions extends CommonDBReadOptions {}
585-
export interface FirestoreDBSaveOptions<
586-
ROW extends ObjectWithId,
587-
> extends CommonDBSaveOptions<ROW> {}
585+
export interface FirestoreDBSaveOptions<ROW extends ObjectWithId>
586+
extends CommonDBSaveOptions<ROW> {}
588587

589588
type SaveOp = 'create' | 'update' | 'set'

packages/js-lib/src/array/array.util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ export function _minMaxOrUndefined<T>(
498498
let min: T | undefined
499499
let max: T | undefined
500500

501-
for (let item of array) {
501+
for (const item of array) {
502502
if (item === undefined || item === null) continue
503503
if (min === undefined) min = item
504504
if (max === undefined) max = item
@@ -532,7 +532,7 @@ export function _minMaxByOrUndefined<T>(
532532
let max: ReturnType<typeof mapper> | undefined
533533
let maxItem: T | undefined
534534

535-
for (let item of array) {
535+
for (const item of array) {
536536
if (item === undefined || item === null) continue
537537

538538
const value = mapper(item)

packages/js-lib/src/http/fetcher.model.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import type {
1414
import type { HttpMethod, HttpStatusFamily } from './http.model.js'
1515

1616
export interface FetcherNormalizedCfg
17-
extends
18-
Required<Omit<FetcherCfg, 'dispatcher'>>,
17+
extends Required<Omit<FetcherCfg, 'dispatcher'>>,
1918
Omit<
2019
FetcherRequest,
2120
| 'started'
@@ -149,10 +148,8 @@ export interface FetcherRetryOptions {
149148
timeoutMultiplier: number
150149
}
151150

152-
export interface FetcherRequest extends Omit<
153-
FetcherOptions,
154-
'method' | 'headers' | 'baseUrl' | 'url'
155-
> {
151+
export interface FetcherRequest
152+
extends Omit<FetcherOptions, 'method' | 'headers' | 'baseUrl' | 'url'> {
156153
/**
157154
* inputUrl is only the part that was passed in the request,
158155
* without baseUrl or searchParams.

packages/js-lib/src/types.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -492,10 +492,8 @@ export type ReadonlyDeep<T> = T extends Primitive | ((...args: any[]) => unknown
492492
/**
493493
Same as `ReadonlyDeep`, but accepts only `ReadonlyMap`s as inputs. Internal helper for `ReadonlyDeep`.
494494
*/
495-
interface ReadonlyMapDeep<KeyType, ValueType> extends ReadonlyMap<
496-
ReadonlyDeep<KeyType>,
497-
ReadonlyDeep<ValueType>
498-
> {}
495+
interface ReadonlyMapDeep<KeyType, ValueType>
496+
extends ReadonlyMap<ReadonlyDeep<KeyType>, ReadonlyDeep<ValueType>> {}
499497

500498
/**
501499
Same as `ReadonlyDeep`, but accepts only `ReadonlySet`s as inputs. Internal helper for `ReadonlyDeep`.

packages/mongo-lib/src/mongo.db.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export interface MongoDBCfg {
3131
}
3232

3333
export interface MongoDBSaveOptions<ROW extends ObjectWithId>
34-
extends CommonDBSaveOptions<ROW>, CommandOperationOptions {}
34+
extends CommonDBSaveOptions<ROW>,
35+
CommandOperationOptions {}
3536

3637
export interface MongoDBOptions extends CommonDBOptions, CommandOperationOptions {}
3738

0 commit comments

Comments
 (0)