Skip to content

Commit 88536bb

Browse files
authored
Merge pull request #179 from gregolsky/v4.1
update wrong import; align store ts interface
2 parents 716e66f + dc4e219 commit 88536bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Documents/DocumentStoreBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
} from "./Session/SessionEvents";
1313
import { Todo } from "../Types";
1414
import { OperationExecutor } from "./Operations/OperationExecutor";
15-
import { SessionOptions } from "http2";
1615
import { IDocumentSession } from "./Session/IDocumentSession";
1716
import { DocumentSession } from "./Session/DocumentSession";
1817
import { DocumentConventions } from "./Conventions/DocumentConventions";
@@ -29,6 +28,7 @@ import { CaseInsensitiveKeysMap } from "../Primitives/CaseInsensitiveKeysMap";
2928
import { ErrorFirstCallback } from "../Types/Callbacks";
3029
import { passResultToCallback } from "../Utility/PromiseUtil";
3130
import { AbstractIndexCreationTask } from "./Indexes/AbstractIndexCreationTask";
31+
import { SessionOptions } from "./Session/SessionOptions";
3232

3333
export abstract class DocumentStoreBase
3434
extends EventEmitter

src/Documents/IDocumentStore.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,17 @@ export interface IDocumentStore extends IDisposable,
8383
/**
8484
* Opens document session
8585
*/
86-
openSession(database?: string, options?: SessionOptions): IDocumentSession;
86+
openSession(options: SessionOptions): IDocumentSession;
8787

8888
/**
8989
* Opens document session
9090
*/
91-
openSession(options?: SessionOptions): IDocumentSession;
91+
openSession(database: string): IDocumentSession;
9292

9393
/**
9494
* Opens document session
9595
*/
96-
openSession(database?: string): IDocumentSession;
96+
openSession(): IDocumentSession;
9797

9898
/**
9999
* Subscribe to change notifications from the server

0 commit comments

Comments
 (0)