Socket
Socket
Sign inDemoInstall

@types/prosemirror-state

Package Overview
Dependencies
8
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.2.1

20

prosemirror-state/index.d.ts

@@ -36,3 +36,3 @@ // Type definitions for prosemirror-state 1.2

*/
state?: StateField<any> | null;
state?: StateField<any, S> | null;
/**

@@ -64,3 +64,3 @@ * Can be used to make this a keyed plugin. You can have only one

*/
filterTransaction?: ((p1: Transaction, p2: EditorState<S>) => boolean) | null;
filterTransaction?: ((p1: Transaction<S>, p2: EditorState<S>) => boolean) | null;
/**

@@ -76,6 +76,6 @@ * Allows the plugin to append another transaction to be applied

| ((
transactions: Transaction[],
transactions: Array<Transaction<S>>,
oldState: EditorState<S>,
newState: EditorState<S>
) => Transaction | null | undefined | void)
) => Transaction<S> | null | undefined | void)
| null;

@@ -126,3 +126,3 @@ }

*/
apply(tr: Transaction, value: T, oldState: EditorState<S>, newState: EditorState<S>): T;
apply(tr: Transaction<S>, value: T, oldState: EditorState<S>, newState: EditorState<S>): T;
/**

@@ -230,3 +230,3 @@ * Convert this field to JSON. Optional, can be left off to disable

*/
replace(tr: Transaction, content?: Slice<S>): void;
replace(tr: Transaction<S>, content?: Slice<S>): void;
/**

@@ -236,3 +236,3 @@ * Replace the selection with the given node, appending the changes

*/
replaceWith(tr: Transaction, node: ProsemirrorNode<S>): void;
replaceWith(tr: Transaction<S>, node: ProsemirrorNode<S>): void;
/**

@@ -453,3 +453,3 @@ * Convert the selection to a JSON representation. When implementing

*/
apply(tr: Transaction): EditorState<S>;
apply(tr: Transaction<S>): EditorState<S>;
/**

@@ -462,7 +462,7 @@ * Verbose variant of [`apply`](#state.EditorState.apply) that

*/
applyTransaction(tr: Transaction): { state: EditorState<S>; transactions: Transaction[] };
applyTransaction(tr: Transaction<S>): { state: EditorState<S>; transactions: Array<Transaction<S>> };
/**
* Start a [transaction](#state.Transaction) from this state.
*/
tr: Transaction;
tr: Transaction<S>;
/**

@@ -469,0 +469,0 @@ * Create a new state based on this one, but with an adjusted set of

{
"name": "@types/prosemirror-state",
"version": "1.2.0",
"version": "1.2.1",
"description": "TypeScript definitions for prosemirror-state",

@@ -29,2 +29,3 @@ "license": "MIT",

"main": "",
"types": "index",
"repository": {

@@ -40,4 +41,4 @@ "type": "git",

},
"typesPublisherContentHash": "f31cd981631a798851867afeb5d9265cb0676bf5707d06eeae297c0e840e4594",
"typesPublisherContentHash": "afe9992227dc11ba214d7fc9a114a27802d615eb89b3acd46edcf1a9c99fbdf4",
"typeScriptVersion": "2.3"
}

@@ -11,4 +11,4 @@ # Installation

Additional Details
* Last updated: Fri, 22 Jun 2018 00:08:12 GMT
* Dependencies: prosemirror-model, prosemirror-transform, prosemirror-view
* Last updated: Sat, 19 Jan 2019 01:10:40 GMT
* Dependencies: @types/prosemirror-model, @types/prosemirror-transform, @types/prosemirror-view
* Global values: none

@@ -15,0 +15,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc