@types/prosemirror-keymap
Advanced tools
Comparing version 0.18.0 to 0.21.0
@@ -1,13 +0,16 @@ | ||
// Type definitions for prosemirror-keymap 0.18 | ||
// Type definitions for prosemirror-keymap 0.21 | ||
// Project: https://github.com/ProseMirror/prosemirror-keymap | ||
// Definitions by: David Hahn <https://github.com/davidka> | ||
// Definitions by: Bradley Ayers <https://github.com/bradleyayers> | ||
// David Hahn <https://github.com/davidka> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.3 | ||
import { Plugin } from 'prosemirror-state' | ||
import { EditorView } from 'prosemirror-view' | ||
import { Plugin } from 'prosemirror-state'; | ||
import { EditorView } from 'prosemirror-view'; | ||
declare module "prosemirror-keymap" { | ||
export function keymap(bindings: Object): Plugin | ||
export function keydownHandler(bindings: Object): (view: EditorView, event: Event) => boolean | ||
export interface Bindings { | ||
[key: string]: any; | ||
} | ||
} | ||
export function keymap<T>(bindings: Bindings): Plugin<T>; | ||
export function keydownHandler(bindings: Bindings): (view: EditorView, event: Event) => boolean; |
{ | ||
"name": "@types/prosemirror-keymap", | ||
"version": "0.18.0", | ||
"version": "0.21.0", | ||
"description": "TypeScript definitions for prosemirror-keymap", | ||
@@ -8,2 +8,6 @@ "license": "MIT", | ||
{ | ||
"name": "Bradley Ayers", | ||
"url": "https://github.com/bradleyayers" | ||
}, | ||
{ | ||
"name": "David Hahn", | ||
@@ -24,4 +28,4 @@ "url": "https://github.com/davidka" | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "9fb2783f50a26c20cb14734186be2d448431399ea2db0ddaa42b0680857e6c64", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "87d3d3944085958b94026019e08a8ca33903519fab7389528ecfecaedf3be47e", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/prosemirror-keymap | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-keymap | ||
Additional Details | ||
* Last updated: Thu, 09 Mar 2017 00:25:50 GMT | ||
* Last updated: Fri, 16 Jun 2017 16:37:51 GMT | ||
* Dependencies: prosemirror-state, prosemirror-view | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by David Hahn <https://github.com/davidka>. | ||
These definitions were written by Bradley Ayers <https://github.com/bradleyayers>, David Hahn <https://github.com/davidka>. |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3275
4
13
0