Skip to content

Commit 9e7db4a

Browse files
author
Saviio
committed
chore: fix code-style
1 parent d78d3a1 commit 9e7db4a

20 files changed

+905
-888
lines changed

src/exception/database.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ export const DatabaseIsNotEmpty =
3939
export const NotConnected =
4040
() => new ReactiveDBException('Method: dispose cannnot be invoked before database is connected.')
4141

42-
export const FieldMustBeArray =
42+
export const IncorrectFieldType =
4343
(field: any) => new ReactiveDBException(`Field must be Array, but got: ${ JSON.stringify(field) }`)
4444

45-
export const AssociatedFieldsPostionError =
45+
export const IncorrectAssocFieldDescription =
4646
() => new ReactiveDBException(`Associated fields description must be the last item in Fields`)

src/interface/enum.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export enum StatementType {
3131
}
3232

3333
export enum JoinMode {
34-
imlicit = 2001,
34+
implicit = 2001,
3535
explicit = 2002
3636
}
3737

src/interface/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export type Predicate<T> = {
172172

173173
export { StatementType, JoinMode, LeafType, Relationship, DataStoreType, RDBType }
174174

175-
export interface TablesStruct {
175+
export interface TableStruct {
176176
[index: string]: {
177177
table: lf.schema.Table
178178
contextName?: string

src/shared/Traversable.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { forEach, getType, keys } from '../utils'
22
import { TraverseContext } from '../interface'
33

4-
export class Traversable<T> {
4+
export class Traversable<T = {}> {
55

66
private ctxgen: (key: any, val: any, ctx: TraverseContext) => T | boolean
77

0 commit comments

Comments
 (0)