@types/prosemirror-keymap
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -9,6 +9,7 @@ // Type definitions for prosemirror-keymap 1.0 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
// TypeScript Version: 3.0 | ||
import { Keymap } from 'prosemirror-commands'; | ||
import { Schema } from 'prosemirror-model'; | ||
import { EditorState, Plugin, Transaction } from 'prosemirror-state'; | ||
import { Plugin } from 'prosemirror-state'; | ||
import { EditorView } from 'prosemirror-view'; | ||
@@ -47,9 +48,3 @@ | ||
*/ | ||
export function keymap<S extends Schema = any>(bindings: { | ||
[key: string]: ( | ||
state: EditorState<S>, | ||
dispatch: (tr: Transaction<S>) => void, | ||
view: EditorView<S> | ||
) => boolean; | ||
}): Plugin; | ||
export function keymap<S extends Schema = any>(bindings: Keymap<S>): Plugin; | ||
@@ -61,8 +56,4 @@ /** | ||
*/ | ||
export function keydownHandler<S extends Schema = any>(bindings: { | ||
[key: string]: ( | ||
state: EditorState<S>, | ||
dispatch: (tr: Transaction<S>) => void, | ||
view: EditorView<S> | ||
) => boolean; | ||
}): (view: EditorView, event: KeyboardEvent) => boolean; | ||
export function keydownHandler<S extends Schema = any>( | ||
bindings: Keymap<S>, | ||
): (view: EditorView, event: KeyboardEvent) => boolean; |
{ | ||
"name": "@types/prosemirror-keymap", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "TypeScript definitions for prosemirror-keymap", | ||
@@ -42,2 +42,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@types/prosemirror-commands": "*", | ||
"@types/prosemirror-model": "*", | ||
@@ -47,4 +48,4 @@ "@types/prosemirror-state": "*", | ||
}, | ||
"typesPublisherContentHash": "bc42f512c948a827845cd29fbfbe821fa901a341bdde1d5af00d9f3ad81e8e44", | ||
"typesPublisherContentHash": "eb04978e69838e7985e7bae37b022dcbe065c1d4a6901c65953aeab74cbd6ec2", | ||
"typeScriptVersion": "3.0" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 21 May 2020 06:14:58 GMT | ||
* Dependencies: [@types/prosemirror-model](https://npmjs.com/package/@types/prosemirror-model), [@types/prosemirror-state](https://npmjs.com/package/@types/prosemirror-state), [@types/prosemirror-view](https://npmjs.com/package/@types/prosemirror-view) | ||
* Last updated: Wed, 08 Jul 2020 19:08:54 GMT | ||
* Dependencies: [@types/prosemirror-commands](https://npmjs.com/package/@types/prosemirror-commands), [@types/prosemirror-model](https://npmjs.com/package/@types/prosemirror-model), [@types/prosemirror-state](https://npmjs.com/package/@types/prosemirror-state), [@types/prosemirror-view](https://npmjs.com/package/@types/prosemirror-view) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
6188
4
53
+ Added@types/prosemirror-commands@1.3.0(transitive)
+ Addedprosemirror-commands@1.6.2(transitive)