DefinitelyTyped

Index

Variables

Interfaces

Functions

Variables

PouchDB: PouchDB

constructor(name: string, opts: PouchOptions, callback: (err: PouchError, res: PouchDB) => void): PouchDB

Parameters

  • name: string
  • opts: PouchOptions
  • callback: (err: PouchError, res: PouchDB) => void

Returns

PouchDB

constructor(name: string, callback: (err: PouchError, res: PouchDB) => void): PouchDB

Parameters

  • name: string
  • callback: (err: PouchError, res: PouchDB) => void

Returns

PouchDB

constructor(name: string): PouchDB

Parameters

  • name: string

Returns

PouchDB

public replicate: PouchReplicate

public allDocs(opts: PouchAllDocsOptions, callback: (err: PouchError, res: PouchAllDocsResponse) => void)

Parameters

public allDocs(callback: (err: PouchError, res: PouchAllDocsResponse) => void)

Parameters

  • callback: (err: PouchError, res: PouchAllDocsResponse) => void

public bulkDocs(req: PouchBulkDocsRequest, opts: PouchUpdateOptions, callback: (err: PouchError, res: PouchUpdateResponse[]) => void)

Parameters

public bulkDocs(req: PouchBulkDocsRequest, callback: (err: PouchError, res: PouchUpdateResponse[]) => void)

Parameters

public changes(opts: PouchChangesOptions, callback: (err: PouchError, res: PouchChanges) => void): PouchCancellable

Parameters

Returns

PouchCancellable

public changes(callback: (err: PouchError, res: PouchChanges) => void): PouchCancellable

Parameters

  • callback: (err: PouchError, res: PouchChanges) => void

Returns

PouchCancellable

public close(callback: () => void)

Parameters

  • callback: () => void

public destroy(name: string, callback: (err: PouchError) => void)

Parameters

  • name: string
  • callback: (err: PouchError) => void

public get(id: string, opts: PouchGetOptions, callback: (err: PouchError, res: PouchGetResponse) => void)

Parameters

  • id: string
  • opts: PouchGetOptions
  • callback: (err: PouchError, res: PouchGetResponse) => void

public get(id: string, callback: (err: PouchError, res: PouchGetResponse) => void)

Parameters

  • id: string
  • callback: (err: PouchError, res: PouchGetResponse) => void

public getAttachment(id: string, opts: PouchAttachmentOptions, callback: (err: PouchError, res: any) => void)

Parameters

public getAttachment(id: string, callback: (err: PouchError, res: any) => void)

Parameters

  • id: string
  • callback: (err: PouchError, res: any) => void

public id(): string

Returns

string

public info(callback: (err: PouchError, res: PouchInfoResponse) => void)

Parameters

  • callback: (err: PouchError, res: PouchInfoResponse) => void

public post(doc: any, opts: PouchUpdateOptions, callback: (err: PouchError, res: PouchUpdateResponse) => void)

Parameters

  • doc: any
  • opts: PouchUpdateOptions
  • callback: (err: PouchError, res: PouchUpdateResponse) => void

public post(doc: any, callback: (err: PouchError, res: PouchUpdateResponse) => void)

Parameters

  • doc: any
  • callback: (err: PouchError, res: PouchUpdateResponse) => void

public put(doc: any, opts: PouchUpdateOptions, callback: (err: PouchError, res: PouchUpdateResponse) => void)

Parameters

  • doc: any
  • opts: PouchUpdateOptions
  • callback: (err: PouchError, res: PouchUpdateResponse) => void

public put(doc: any, callback: (err: PouchError, res: PouchUpdateResponse) => void)

Parameters

  • doc: any
  • callback: (err: PouchError, res: PouchUpdateResponse) => void

public putAttachment(id: string, rev: string, doc: any, type: string, callback: (err: PouchError, res: PouchUpdateResponse) => void)

Parameters

  • id: string
  • rev: string
  • doc: any
  • type: string
  • callback: (err: PouchError, res: PouchUpdateResponse) => void

public query(fun: string, opts: PouchQueryOptions, callback: (err: PouchError, res: PouchQueryResponse) => void)

Parameters

  • fun: string
  • opts: PouchQueryOptions
  • callback: (err: PouchError, res: PouchQueryResponse) => void

public query(fun: string, callback: (err: PouchError, res: PouchQueryResponse) => void)

Parameters

  • fun: string
  • callback: (err: PouchError, res: PouchQueryResponse) => void

public query(fun: PouchFilter, opts: PouchQueryOptions, callback: (err: PouchError, res: PouchQueryResponse) => void)

Parameters

public query(fun: PouchFilter, callback: (err: PouchError, res: PouchQueryResponse) => void)

Parameters

  • fun: PouchFilter
  • callback: (err: PouchError, res: PouchQueryResponse) => void

public remove(doc: any, opts: PouchUpdateOptions, callback: (err: PouchError, res: PouchUpdateResponse) => void)

Parameters

  • doc: any
  • opts: PouchUpdateOptions
  • callback: (err: PouchError, res: PouchUpdateResponse) => void

public remove(doc: any, callback: (err: PouchError, res: PouchUpdateResponse) => void)

Parameters

  • doc: any
  • callback: (err: PouchError, res: PouchUpdateResponse) => void

public removeAttachment(id: string, rev: string, callback: (err: PouchError, res: PouchUpdateResponse) => void)

Parameters

  • id: string
  • rev: string
  • callback: (err: PouchError, res: PouchUpdateResponse) => void

public revsDiff(req: any, opts: PouchRevsDiffOptions, callback: (missing: any) => void)

Parameters

public revsDiff(req: any, callback: (missing: any) => void)

Parameters

  • req: any
  • callback: (missing: any) => void

public type(): string

Returns

string

Functions

emit(key: any, value: any): any

Parameters

  • key: any
  • value: any

Returns

any