mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-09 09:01:16 +08:00
Fix Decoration.widget signature. (#18201)
This commit is contained in:
committed by
Wesley Wigham
parent
b33275b2f4
commit
e030446e88
2
types/prosemirror-view/index.d.ts
vendored
2
types/prosemirror-view/index.d.ts
vendored
@@ -12,7 +12,7 @@ import * as dom from './dom';
|
||||
|
||||
export class Decoration {
|
||||
spec: object;
|
||||
static widget(pos: number, dom: Node, spec?: { side?: number | null, stopEvent?: ((event: Event) => boolean) | null, key?: string | null }): Decoration;
|
||||
static widget(pos: number, dom: dom.Node, spec?: { side?: number | null, stopEvent?: ((event: Event) => boolean) | null, key?: string | null }): Decoration;
|
||||
static inline(from: number, to: number, attrs: DecorationAttrs, spec?: { inclusiveStart?: boolean | null, inclusiveEnd?: boolean | null }): Decoration;
|
||||
static node(from: number, to: number, attrs: DecorationAttrs, spec?: object): Decoration;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user