mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Per the README, and with research prompted by #19691, the shape of PouchDB export should reflect what is currently the node package's package.json main export shape (not jsnext:main).
This commit is contained in:
parent
fc10803f20
commit
3b6b92d45e
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 PouchDB from 'pouchdb';
|
||||
import * as 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 PouchDB from 'pouchdb';
|
||||
import * as PouchDB from 'pouchdb';
|
||||
|
||||
const types = {
|
||||
DELETE_TODO: 'delete-todo',
|
||||
|
||||
2
types/pouchdb/index.d.ts
vendored
2
types/pouchdb/index.d.ts
vendored
@ -24,5 +24,5 @@
|
||||
|
||||
declare module 'pouchdb' {
|
||||
const plugin: PouchDB.Static;
|
||||
export default plugin;
|
||||
export = plugin;
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import PouchDB from 'pouchdb';
|
||||
import * as PouchDB from 'pouchdb';
|
||||
|
||||
function isString(someString: string) {
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user