mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 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:
parent
42293777d5
commit
8703554861
2
types/prosemirror-inputrules/index.d.ts
vendored
2
types/prosemirror-inputrules/index.d.ts
vendored
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user