Skip to content

Commit

Permalink
fix(metadata): return value type by merge doc title function
Browse files Browse the repository at this point in the history
  • Loading branch information
kalitine committed Jul 2, 2018
1 parent 6663f42 commit 1d8e63d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/doc/MetaDataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export interface MetaDataMessage {
export class MetaDataService implements Disposable {
public static ID: number = 430

static mergeTitle(t1: TitleState, t2: TitleState): object {
static mergeTitle(t1: TitleState, t2: TitleState): TitleState {
const service = new TitleService(0)
service.initTitle(t1.title, t1.count)
service.handleRemoteTitleState({ count: t2.count, title: t2.title })
return service.state
return service.asObject
}

static mergeFixData(fd1: FixDataState, fd2: FixDataState): FixDataState {
Expand Down
2 changes: 1 addition & 1 deletion src/doc/TitleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class TitleService {
return this.titleState[1]
}

get asObject(): object {
get asObject(): TitleState {
return { count: this.titleState[0], title: this.titleState[1] }
}
}

0 comments on commit 1d8e63d

Please sign in to comment.