@types/prosemirror-state
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -25,3 +25,3 @@ // Type definitions for prosemirror-state 1.2 | ||
*/ | ||
props?: EditorProps<Plugin<T, S>, S> | null; | ||
props?: EditorProps<Plugin<T, S>, S> | null | undefined; | ||
/** | ||
@@ -31,3 +31,3 @@ * Allows a plugin to define a [state field](#state.StateField), an | ||
*/ | ||
state?: StateField<T, S> | null; | ||
state?: StateField<T, S> | null | undefined; | ||
/** | ||
@@ -39,3 +39,3 @@ * Can be used to make this a keyed plugin. You can have only one | ||
*/ | ||
key?: PluginKey<T, S> | null; | ||
key?: PluginKey<T, S> | null | undefined; | ||
/** | ||
@@ -51,6 +51,6 @@ * When the plugin needs to interact with the editor view, or | ||
) => { | ||
update?: ((view: EditorView<S>, prevState: EditorState<S>) => void) | null; | ||
destroy?: (() => void) | null; | ||
update?: ((view: EditorView<S>, prevState: EditorState<S>) => void) | null | undefined; | ||
destroy?: (() => void) | null | undefined; | ||
}) | ||
| null; | ||
| null | undefined; | ||
/** | ||
@@ -61,3 +61,3 @@ * When present, this will be called before a transaction is | ||
*/ | ||
filterTransaction?: ((p1: Transaction<S>, p2: EditorState<S>) => boolean) | null; | ||
filterTransaction?: ((p1: Transaction<S>, p2: EditorState<S>) => boolean) | null | undefined; | ||
/** | ||
@@ -77,3 +77,3 @@ * Allows the plugin to append another transaction to be applied | ||
) => Transaction<S> | null | undefined | void) | ||
| null; | ||
| null | undefined; | ||
} | ||
@@ -128,3 +128,3 @@ /** | ||
*/ | ||
toJSON?: ((this: Plugin<T, S>, value: T) => any) | null; | ||
toJSON?: ((this: Plugin<T, S>, value: T) => any) | null | undefined; | ||
/** | ||
@@ -134,3 +134,3 @@ * Deserialize the JSON representation of this field. Note that the | ||
*/ | ||
fromJSON?: ((this: Plugin<T, S>, config: { [key: string]: any }, value: any, state: EditorState<S>) => T) | null; | ||
fromJSON?: ((this: Plugin<T, S>, config: { [key: string]: any }, value: any, state: EditorState<S>) => T) | null | undefined; | ||
} | ||
@@ -347,3 +347,3 @@ /** | ||
*/ | ||
$cursor?: ResolvedPos<S> | null; | ||
$cursor?: ResolvedPos<S> | null | undefined; | ||
/** | ||
@@ -424,3 +424,3 @@ * Create a text selection from non-resolved positions. | ||
*/ | ||
storedMarks?: Array<Mark<S>> | null; | ||
storedMarks?: Array<Mark<S>> | null | undefined; | ||
/** | ||
@@ -458,3 +458,3 @@ * The schema of the state's document. | ||
*/ | ||
reconfigure(config: { schema?: S | null; plugins?: Array<Plugin<any, S>> | null }): EditorState<S>; | ||
reconfigure(config: { schema?: S | null | undefined; plugins?: Array<Plugin<any, S>> | null | undefined }): EditorState<S>; | ||
/** | ||
@@ -470,7 +470,7 @@ * Serialize this state to JSON. If you want to serialize the state | ||
static create<S extends Schema = any>(config: { | ||
schema?: S | null; | ||
doc?: ProsemirrorNode<S> | null; | ||
selection?: Selection<S> | null; | ||
storedMarks?: Mark[] | null; | ||
plugins?: Array<Plugin<any, S>> | null; | ||
schema?: S | null | undefined; | ||
doc?: ProsemirrorNode<S> | null | undefined; | ||
selection?: Selection<S> | null | undefined; | ||
storedMarks?: Mark[] | null | undefined; | ||
plugins?: Array<Plugin<any, S>> | null | undefined; | ||
}): EditorState<S>; | ||
@@ -485,3 +485,3 @@ /** | ||
static fromJSON<S extends Schema = any>( | ||
config: { schema: S; plugins?: Array<Plugin<any, S>> | null }, | ||
config: { schema: S; plugins?: Array<Plugin<any, S>> | null | undefined }, | ||
json: { [key: string]: any }, | ||
@@ -519,3 +519,3 @@ pluginFields?: { [name: string]: Plugin<any, S> }, | ||
*/ | ||
storedMarks?: Mark[] | null; | ||
storedMarks?: Mark[] | null | undefined; | ||
/** | ||
@@ -522,0 +522,0 @@ * The transaction's current selection. This defaults to the editor |
{ | ||
"name": "@types/prosemirror-state", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "TypeScript definitions for prosemirror-state", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-state", | ||
"license": "MIT", | ||
@@ -46,4 +47,4 @@ "contributors": [ | ||
}, | ||
"typesPublisherContentHash": "ca7ce8d864faff51a97c79c41a6e018558d2a57492f5ac61f5e0ba8e1f95222e", | ||
"typeScriptVersion": "3.4" | ||
"typesPublisherContentHash": "9f1f9941e96ca266771e33cfdf953ed0d15cc4839c9c9944e8b001ef8f98cec9", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 18 Jan 2021 15:07:08 GMT | ||
* Last updated: Wed, 07 Jul 2021 17:02:38 GMT | ||
* Dependencies: [@types/prosemirror-model](https://npmjs.com/package/@types/prosemirror-model), [@types/prosemirror-transform](https://npmjs.com/package/@types/prosemirror-transform), [@types/prosemirror-view](https://npmjs.com/package/@types/prosemirror-view) | ||
@@ -14,0 +14,0 @@ * Global values: none |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
26165