mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
[pouchdb] Update types definitions for the latest version of pouchdb (#18519)
Add an optional extended description…
This commit is contained in:
committed by
Sheetal Nandi
parent
d85f1437b9
commit
b629f5171e
2
types/pouch-redux-middleware/index.d.ts
vendored
2
types/pouch-redux-middleware/index.d.ts
vendored
@@ -5,7 +5,7 @@
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Dispatch, Action, Middleware } from 'redux';
|
||||
import * as PouchDB from 'pouchdb';
|
||||
import PouchDB from 'pouchdb';
|
||||
|
||||
export interface Document {
|
||||
_id: any;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as redux from 'redux';
|
||||
import makePouchMiddleware, { Document, Path } from 'pouch-redux-middleware';
|
||||
import * as PouchDB from 'pouchdb';
|
||||
import PouchDB from 'pouchdb';
|
||||
|
||||
const types = {
|
||||
DELETE_TODO: 'delete-todo',
|
||||
|
||||
4
types/pouchdb/index.d.ts
vendored
4
types/pouchdb/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for pouchdb 6.1
|
||||
// Type definitions for pouchdb 6.3
|
||||
// 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
|
||||
@@ -24,5 +24,5 @@
|
||||
|
||||
declare module 'pouchdb' {
|
||||
const plugin: PouchDB.Static;
|
||||
export = plugin;
|
||||
export default plugin;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import * as PouchDB from 'pouchdb';
|
||||
import PouchDB from 'pouchdb';
|
||||
|
||||
function isString(someString: string) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user