@types/prosemirror-collab
Advanced tools
Comparing version 0.18.0 to 0.21.0
@@ -1,17 +0,16 @@ | ||
// Type definitions for prosemirror-collab 0.18 | ||
// Type definitions for prosemirror-collab 0.21 | ||
// Project: https://github.com/ProseMirror/prosemirror-collab | ||
// Definitions by: David Hahn <https://github.com/davidka> | ||
// Definitions by: Bradley Ayers <https://github.com/bradleyayers> | ||
// David Hahn <https://github.com/davidka> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.1 | ||
import { Plugin } from 'prosemirror-state' | ||
import { EditorState } from 'prosemirror-state' | ||
import { Step } from 'prosemirror-transform' | ||
import { Transaction } from 'prosemirror-state' | ||
import { Plugin } from 'prosemirror-state'; | ||
import { EditorState } from 'prosemirror-state'; | ||
import { Step } from 'prosemirror-transform'; | ||
import { Transaction } from 'prosemirror-state'; | ||
declare module "prosemirror-collab" { | ||
export function collab(config?: { version?: number, clientID?: number }): Plugin | ||
export function receiveTransaction(state: EditorState, steps: Step[], clientIDs: number[]): Transaction | ||
export function sendableSteps(state: EditorState): { version: number, steps: Step[], clientID: number, origins: Transaction[] } | void | ||
export function getVersion(state: EditorState): number | ||
} | ||
export function collab(config?: { version?: number, clientID?: number | string }): Plugin; | ||
export function receiveTransaction(state: EditorState, steps: Step[], clientIDs: Array<number | string>): Transaction; | ||
export function sendableSteps(state: EditorState): { version: number, steps: Step[], clientID: number | string, origins: Transaction[] } | null; | ||
export function getVersion(state: EditorState): number; |
{ | ||
"name": "@types/prosemirror-collab", | ||
"version": "0.18.0", | ||
"version": "0.21.0", | ||
"description": "TypeScript definitions for prosemirror-collab", | ||
@@ -8,2 +8,6 @@ "license": "MIT", | ||
{ | ||
"name": "Bradley Ayers", | ||
"url": "https://github.com/bradleyayers" | ||
}, | ||
{ | ||
"name": "David Hahn", | ||
@@ -24,4 +28,4 @@ "url": "https://github.com/davidka" | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "c942412ae1b6e3f2573185b68b38427dba8a535143028bfd01feaaecd6a7e40d", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "a2fe4066d4bbdafa50ae4e688a4d2caa707e82234cfac7c0d17df259a8dc0eb8", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/prosemirror-collab | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/prosemirror-collab | ||
Additional Details | ||
* Last updated: Thu, 09 Mar 2017 00:25:50 GMT | ||
* Last updated: Fri, 02 Jun 2017 17:06:02 GMT | ||
* Dependencies: prosemirror-state, prosemirror-transform | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by David Hahn <https://github.com/davidka>. | ||
These definitions were written by Bradley Ayers <https://github.com/bradleyayers>, David Hahn <https://github.com/davidka>. |
3583
4
14