Added typings for prosemirror-keymap 0.18.0

This commit is contained in:
David Hahn
2017-03-07 10:18:45 +01:00
parent 96aac2f425
commit 8cb7c8d36e
3 changed files with 39 additions and 0 deletions

13
prosemirror-keymap/index.d.ts vendored Normal file
View File

@@ -0,0 +1,13 @@
// Type definitions for prosemirror-keymap 0.18.0
// Project: https://github.com/ProseMirror/prosemirror-keymap
// Definitions by: David Hahn <https://github.com/davidka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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
}

View File

@@ -0,0 +1,3 @@
import * as keymap from 'prosemirror-keymap';
keymap.keymap({});

View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"prosemirror-keymap-tests.ts"
]
}