mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-10 01:25:38 +08:00
Added typings for prosemirror-keymap 0.18.0
This commit is contained in:
13
prosemirror-keymap/index.d.ts
vendored
Normal file
13
prosemirror-keymap/index.d.ts
vendored
Normal 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
|
||||
|
||||
}
|
||||
3
prosemirror-keymap/prosemirror-keymap-tests.ts
Normal file
3
prosemirror-keymap/prosemirror-keymap-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import * as keymap from 'prosemirror-keymap';
|
||||
|
||||
keymap.keymap({});
|
||||
23
prosemirror-keymap/tsconfig.json
Normal file
23
prosemirror-keymap/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user