Skip to content

Commit

Permalink
chore: fix code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
Saviio committed Sep 14, 2017
1 parent d78d3a1 commit 9e7db4a
Show file tree
Hide file tree
Showing 20 changed files with 905 additions and 888 deletions.
4 changes: 2 additions & 2 deletions src/exception/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ export const DatabaseIsNotEmpty =
export const NotConnected =
() => new ReactiveDBException('Method: dispose cannnot be invoked before database is connected.')

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

export const AssociatedFieldsPostionError =
export const IncorrectAssocFieldDescription =
() => new ReactiveDBException(`Associated fields description must be the last item in Fields`)
2 changes: 1 addition & 1 deletion src/interface/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export enum StatementType {
}

export enum JoinMode {
imlicit = 2001,
implicit = 2001,
explicit = 2002
}

Expand Down
2 changes: 1 addition & 1 deletion src/interface/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export type Predicate<T> = {

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

export interface TablesStruct {
export interface TableStruct {
[index: string]: {
table: lf.schema.Table
contextName?: string
Expand Down
2 changes: 1 addition & 1 deletion src/shared/Traversable.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { forEach, getType, keys } from '../utils'
import { TraverseContext } from '../interface'

export class Traversable<T> {
export class Traversable<T = {}> {

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

Expand Down
Loading

0 comments on commit 9e7db4a

Please sign in to comment.