diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 781257488a..55ba13826c 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -73,6 +73,7 @@ export class Schema extends Immutable.Record({}) { static create(properties: SchemaProperties | Schema): Schema; static fromJSON(object: SchemaProperties): Schema; + static fromJS(object: SchemaProperties): Schema; static isSchema(maybeSchema: any): maybeSchema is Schema; toJSON(): SchemaProperties; @@ -148,6 +149,7 @@ export class Value extends Immutable.Record({}) { static create(properties?: ValueProperties | Value): Value; static fromJSON(properties: ValueJSON): Value; + static fromJS(properties: ValueJSON): Value; static isValue(maybeValue: any): maybeValue is Value; change(): Change; @@ -177,6 +179,7 @@ export class Document extends BaseNode< properties: DocumentProperties | Document | Immutable.List | Node[] ): Document; static fromJSON(properties: DocumentProperties | Document): Document; + static fromJS(properties: DocumentProperties | Document): Document; static isDocument(maybeDocument: any): maybeDocument is Document; toJSON(): DocumentJSON; @@ -209,6 +212,7 @@ export class Block extends BaseNode { array: (BlockProperties[] | Block[] | string[]) ): Immutable.List; static fromJSON(properties: BlockProperties | Block): Block; + static fromJS(properties: BlockProperties | Block): Block; static isBlock(maybeBlock: any): maybeBlock is Block; toJSON(): BlockJSON; @@ -241,6 +245,7 @@ export class Inline extends BaseNode { array: (InlineProperties[] | Inline[] | string[]) ): Immutable.List; static fromJSON(properties: InlineProperties | Inline): Inline; + static fromJS(properties: InlineProperties | Inline): Inline; static isInline(maybeInline: any): maybeInline is Inline; toJSON(): InlineJSON; @@ -271,6 +276,7 @@ export class Text extends Immutable.Record({}) { static create(properties: TextProperties | Text | string): Text; static fromJSON(properties: TextProperties | Text): Text; + static fromJS(properties: TextProperties | Text): Text; static isText(maybeText: any): maybeText is Text; toJSON(): TextJSON; @@ -343,6 +349,7 @@ export class Character extends Immutable.Record({}) { array: (CharacterProperties[] | Character[] | string[]) ): Immutable.List; static fromJSON(properties: CharacterProperties | Character): Character; + static fromJS(properties: CharacterProperties | Character): Character; static isCharacter(maybeCharacter: any): maybeCharacter is Character; toJSON(): CharacterProperties; @@ -368,6 +375,7 @@ export class Mark extends Immutable.Record({}) { array: (MarkProperties[] | Mark[] | string[]) ): Immutable.Set; static fromJSON(properties: MarkJSON | Mark): Mark; + static fromJS(properties: MarkJSON | Mark): Mark; static isMark(maybeMark: any): maybeMark is Mark; toJSON(): MarkProperties; @@ -577,6 +585,7 @@ export class Range extends Immutable.Record({}) { static create(properties: RangeProperties | Range): Range; static fromJSON(properties: RangeJSON): Range; + static fromJS(properties: RangeJSON): Range; static isRange(maybeRange: any): maybeRange is Range; toJSON(): RangeProperties;