Skip to content

Commit cb758b6

Browse files
authored
Merge pull request #178 from gregolsky/v4.0
update wrong import
2 parents 7885711 + bd3377e commit cb758b6

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

src/Documents/DocumentStore.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { DocumentStoreBase } from "./DocumentStoreBase";
88
import { IDocumentStore } from "./IDocumentStore";
99
import { MaintenanceOperationExecutor } from "./Operations/MaintenanceOperationExecutor";
1010
import { OperationExecutor } from "./Operations/OperationExecutor";
11-
import { IDocumentSession, ISessionOptions } from "./Session/IDocumentSession";
11+
import { IDocumentSession, SessionOptions } from "./Session/IDocumentSession";
1212
import { DocumentSession } from "./Session/DocumentSession";
1313
import { HiloMultiDatabaseIdGenerator } from "./Identity/HiloMultiDatabaseIdGenerator";
1414
import { IAuthOptions } from "../Auth/AuthOptions";
@@ -152,11 +152,11 @@ export class DocumentStore extends DocumentStoreBase {
152152
/**
153153
* Opens document session
154154
*/
155-
public openSession(sessionOpts: ISessionOptions): IDocumentSession;
155+
public openSession(sessionOpts: SessionOptions): IDocumentSession;
156156
/**
157157
* Opens document session
158158
*/
159-
public openSession(databaseOrSessionOptions?: string | ISessionOptions): IDocumentSession {
159+
public openSession(databaseOrSessionOptions?: string | SessionOptions): IDocumentSession {
160160
this.assertInitialized();
161161
this._ensureNotDisposed();
162162

@@ -167,11 +167,11 @@ export class DocumentStore extends DocumentStoreBase {
167167
}
168168

169169
let database: string;
170-
let sessionOpts: ISessionOptions;
170+
let sessionOpts: SessionOptions;
171171
let requestExecutor: RequestExecutor;
172172
databaseOrSessionOptions = databaseOrSessionOptions || {};
173173
database = databaseOrSessionOptions.database || this._database;
174-
sessionOpts = databaseOrSessionOptions as ISessionOptions;
174+
sessionOpts = databaseOrSessionOptions as SessionOptions;
175175
requestExecutor = sessionOpts.requestExecutor || this.getRequestExecutor(database);
176176

177177
const sessionId = uuid();

src/Documents/DocumentStoreBase.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {
1212
} from "./Session/SessionEvents";
1313
import { Todo } from "../Types";
1414
import { OperationExecutor } from "./Operations/OperationExecutor";
15-
import { SessionOptions } from "http2";
16-
import { IDocumentSession } from "./Session/IDocumentSession";
15+
import { IDocumentSession, SessionOptions } from "./Session/IDocumentSession";
1716
import { DocumentSession } from "./Session/DocumentSession";
1817
import { AbstractIndexCreationTask } from "./Indexes";
1918
import { DocumentConventions } from "./Conventions/DocumentConventions";

src/Documents/IDocumentStore.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IDocumentSession, ISessionOptions } from "./Session/IDocumentSession";
1+
import { IDocumentSession, SessionOptions } from "./Session/IDocumentSession";
22
import { IStoreAuthOptions } from "../Auth/AuthOptions";
33
import {
44
SessionBeforeStoreEventArgs,
@@ -86,12 +86,12 @@ export interface IDocumentStore extends IDisposable,
8686
/**
8787
* Opens document session
8888
*/
89-
openSession(options?: ISessionOptions): IDocumentSession;
89+
openSession(options?: SessionOptions): IDocumentSession;
9090

9191
/**
9292
* Opens document session
9393
*/
94-
openSession(database?: string, options?: ISessionOptions): IDocumentSession;
94+
openSession(database?: string, options?: SessionOptions): IDocumentSession;
9595

9696
/**
9797
* Subscribe to change notifications from the server

src/Documents/Session/IDocumentSession.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export interface IDocumentSession extends IDisposable {
158158
query<T extends object>(documentType: DocumentType<T>): IDocumentQuery<T>;
159159
}
160160

161-
export interface ISessionOptions {
161+
export interface SessionOptions {
162162
database?: string;
163163
requestExecutor?: RequestExecutor;
164164
}

src/Documents/Subscriptions/SubscriptionBatch.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
IDocumentSession,
44
IDocumentStore,
55
IMetadataDictionary,
6-
ISessionOptions,
6+
SessionOptions,
77
RequestExecutor
88
} from "../..";
99
import { getLogger } from "../../Utility/LogUtil";
@@ -35,7 +35,7 @@ export class SubscriptionBatch<T extends object> {
3535
const sessionOptions = {
3636
database: this._dbName,
3737
requestExecutor: this._requestExecutor
38-
} as ISessionOptions;
38+
} as SessionOptions;
3939
return this._store.openSession(sessionOptions);
4040
}
4141

0 commit comments

Comments
 (0)