🤖 Merge PR #47569 [@types/prosemirror-model] Change parameter type of rangeHasMark to accept Mark or MarkType by @ilkkave

This commit is contained in:
Ilkka Veteläsuo 2020-09-23 08:44:06 +03:00 committed by GitHub
parent acc0bd60c5
commit 029f37009d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
*/