mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-27 22:35:23 +08:00
28 lines
889 B
TypeScript
28 lines
889 B
TypeScript
// Type definitions for pouchdb-http 6.1
|
|
// Project: https://pouchdb.com/
|
|
// Definitions by: Simon Paulger <https://github.com/spaulg>, Brian Geppert <https://github.com/geppy>, Frederico Galvão <https://github.com/fredgalvao>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
/// <reference types="pouchdb-core" />
|
|
|
|
declare namespace PouchDB {
|
|
namespace HttpAdapter {
|
|
interface HttpAdapterConfiguration
|
|
extends Configuration.RemoteDatabaseConfiguration {
|
|
adapter: 'http';
|
|
}
|
|
}
|
|
|
|
interface Static {
|
|
new<Content extends {}>(name: string | null,
|
|
options: HttpAdapter.HttpAdapterConfiguration
|
|
): Database<Content>;
|
|
}
|
|
}
|
|
|
|
declare module 'pouchdb-adapter-http' {
|
|
const plugin: PouchDB.Plugin;
|
|
export = plugin;
|
|
}
|