Skip to content

Commit

Permalink
fix: add type isDestroyed for prosemirror-view (DefinitelyTyped#5…
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored and Martin Badin committed Feb 23, 2022
1 parent e12b098 commit 7dfcff8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion types/prosemirror-view/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
// Type definitions for prosemirror-view 1.19
// Type definitions for prosemirror-view 1.23
// Project: https://github.com/ProseMirror/prosemirror-view
// Definitions by: Bradley Ayers <https://github.com/bradleyayers>
// David Hahn <https://github.com/davidka>
// Tim Baumann <https://github.com/timjb>
// Patrick Simmelbauer <https://github.com/patsimm>
// Ifiok Jr. <https://github.com/ifiokjr>
// Mike Morearty <https://github.com/mmorearty>
// Ocavue <https://github.com/ocavue>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0

Expand Down Expand Up @@ -367,6 +368,12 @@ export class EditorView<S extends Schema = any> {
* views](#view.NodeView).
*/
destroy(): void;
/**
* This is true when the view has been
* [destroyed](#view.EditorView.destroy) (and thus should not be
* used anymore).
*/
isDestroyed: boolean;
/**
* Dispatch a transaction. Will call
* [`dispatchTransaction`](#view.DirectEditorProps.dispatchTransaction)
Expand Down

0 comments on commit 7dfcff8

Please sign in to comment.