Files
DefinitelyTyped/pouchdb-adapter-http/index.d.ts

27 lines
836 B
TypeScript

// Type definitions for pouchdb-http v5.4.4
// Project: https://pouchdb.com/
// Definitions by: Andy Brown <https://github.com/AGBrown>, Brian Geppert <https://github.com/geppy>, Frederico Galvão <https://github.com/fredgalvao>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="pouchdb-core" />
declare namespace PouchDB {
namespace HttpAdapter {
interface HttpAdapterConfiguration
extends Configuration.RemoteDatabaseConfiguration {
adapter: 'http';
}
}
interface Static {
new<Content extends Core.Encodable>(name: string | void,
options: HttpAdapter.HttpAdapterConfiguration
): Database<Content>;
}
}
declare module 'pouchdb-adapter-http' {
const plugin: PouchDB.Plugin;
export = plugin;
}