message: align getSubscriptionWorker* interface
diff: @@ -213,29 +213,6 @@ export class DocumentSubscriptions implements IDisposable {
  public getSubscriptionWorkerForRevisions<T extends object>(
  options: SubscriptionWorkerOptions<T>, database: string): SubscriptionWorker<Revision<T>>;
  - /**
  - * It opens a subscription and starts pulling documents since a last processed document for that subscription.
  - * The connection options determine client and server cooperation rules like document batch sizes
  - * or a timeout in a matter of which a client needs to acknowledge that batch has been processed.
  - * The acknowledgment is sent after all documents are processed by subscription's handlers.
  - *
  - * There can be only a single client that is connected to a subscription.
  - */
  - public getSubscriptionWorkerForRevisions<T extends object>(
  - subscriptionName: string, documentType: DocumentType<T>): SubscriptionWorker<Revision<T>>;
  -
  - /**
  - * It opens a subscription and starts pulling documents since a last processed document for that subscription.
  - * The connection options determine client and server cooperation rules like document batch sizes
  - * or a timeout in a matter of which a client needs to acknowledge that batch has been processed.
  - * The acknowledgment is sent after all documents are processed by subscription's handlers.
  - *
  - * There can be only a single client that is connected to a subscription.
  - */
  - public getSubscriptionWorkerForRevisions<T extends object>(
  - subscriptionName: string, documentType: DocumentType<T>,
  - database: string): SubscriptionWorker<Revision<T>>;
  -
  /**
  * It opens a subscription and starts pulling documents since a last processed document for that subscription.
  * The connection options determine client and server cooperation rules like document batch sizes
  @@ -246,18 +223,15 @@ export class DocumentSubscriptions implements IDisposable {
  */
  public getSubscriptionWorkerForRevisions<T extends object>(
  optionsOrSubscriptionName: SubscriptionWorkerOptions<T> | string,
  - documentTypeOrDatabase?: DocumentType<T> | string,
  database?: string): SubscriptionWorker<Revision<T>> {
  if (TypeUtil.isString(optionsOrSubscriptionName)) {
  return this.getSubscriptionWorkerForRevisions({
  subscriptionName: optionsOrSubscriptionName,
  - documentType: documentTypeOrDatabase
  } as SubscriptionWorkerOptions<T>, database);
  }
  const options: SubscriptionWorkerOptions<T> = optionsOrSubscriptionName;
  - database = documentTypeOrDatabase as string;
  const subscription = new SubscriptionWorker<Revision<T>>(
  options as any as SubscriptionWorkerOptions<Revision<T>>, true, this._store, database);
  