🤖 Merge PR #46807 [prosemirror-inputrules] Fix type of return value from inputRules by @hubgit

The type of `Plugin` in `prosemirror-state` has two arguments, the second of which is the schema:

867ab9307d/types/prosemirror-state/index.d.ts (L86)
This commit is contained in:
Alf Eaton 2020-08-30 22:23:18 +01:00 committed by GitHub
parent 42293777d5
commit 8703554861
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ export class InputRule<S extends Schema = any> {
*/
export function inputRules<S extends Schema = any>(config: {
rules: Array<InputRule<S>>;
}): Plugin<S>;
}): Plugin<unknown, S>;
/**
* This is a command that will undo an input rule, if applying such a
* rule was the last thing that the user did.