index.d.ts 933 B

12345678910111213141516171819202122232425262728293031
  1. // Generated by typings
  2. // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/a396c170ba4b6a7f45b20fccbdba0d2b81cc8833/pouchdb-adapter-websql/pouchdb-adapter-websql.d.ts
  3. declare namespace PouchDB {
  4. namespace Core {
  5. interface DatabaseInfo {
  6. sqlite_plugin?: boolean;
  7. websql_encoding?: 'UTF-8' | 'UTF-16';
  8. }
  9. }
  10. namespace AdapterWebSql {
  11. interface Configuration
  12. extends Configuration.LocalDatabaseConfiguration {
  13. /**
  14. * Amount in MB to request for storage.
  15. */
  16. size?: number;
  17. adapter: 'websql';
  18. }
  19. }
  20. interface Static {
  21. new<Content extends Core.Encodable>(name: string | void,
  22. options: AdapterWebSql.Configuration): Database<Content>;
  23. }
  24. }
  25. declare module 'pouchdb-adapter-websql' {
  26. const plugin: PouchDB.Plugin;
  27. export = plugin;
  28. }