mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-29 18:09:49 +02:00
Update Operation API documentation (#5239)
* fix typo in implementation * doc based on implementation * fix doc typo
This commit is contained in:
@@ -150,7 +150,7 @@ export interface OperationInterface {
|
||||
// eslint-disable-next-line no-redeclare
|
||||
export const Operation: OperationInterface = {
|
||||
/**
|
||||
* Check of a value is a `NodeOperation` object.
|
||||
* Check if a value is a `NodeOperation` object.
|
||||
*/
|
||||
|
||||
isNodeOperation(value: any): value is NodeOperation {
|
||||
@@ -158,7 +158,7 @@ export const Operation: OperationInterface = {
|
||||
},
|
||||
|
||||
/**
|
||||
* Check of a value is an `Operation` object.
|
||||
* Check if a value is an `Operation` object.
|
||||
*/
|
||||
|
||||
isOperation(value: any): value is Operation {
|
||||
@@ -226,7 +226,7 @@ export const Operation: OperationInterface = {
|
||||
},
|
||||
|
||||
/**
|
||||
* Check of a value is a `SelectionOperation` object.
|
||||
* Check if a value is a `SelectionOperation` object.
|
||||
*/
|
||||
|
||||
isSelectionOperation(value: any): value is SelectionOperation {
|
||||
@@ -234,7 +234,7 @@ export const Operation: OperationInterface = {
|
||||
},
|
||||
|
||||
/**
|
||||
* Check of a value is a `TextOperation` object.
|
||||
* Check if a value is a `TextOperation` object.
|
||||
*/
|
||||
|
||||
isTextOperation(value: any): value is TextOperation {
|
||||
|
Reference in New Issue
Block a user