mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #47569 [@types/prosemirror-model] Change parameter type of rangeHasMark to accept Mark or MarkType by @ilkkave
This commit is contained in:
parent
acc0bd60c5
commit
029f37009d
4
types/prosemirror-model/index.d.ts
vendored
4
types/prosemirror-model/index.d.ts
vendored
@ -631,10 +631,10 @@ declare class ProsemirrorNode<S extends Schema = any> {
|
||||
*/
|
||||
resolve(pos: number): ResolvedPos<S>;
|
||||
/**
|
||||
* Test whether a mark of the given type occurs in this document
|
||||
* Test whether a given mark or mark type occurs in this document
|
||||
* between the two given positions.
|
||||
*/
|
||||
rangeHasMark(from: number, to: number, type: MarkType<S>): boolean;
|
||||
rangeHasMark(from: number, to: number, type: Mark<S> | MarkType<S>): boolean;
|
||||
/**
|
||||
* True when this is a block (non-inline node)
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user