From 708372c7457ed3e012720c243fd7c77e428ee392 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Wed, 26 May 2021 00:16:24 -0700 Subject: [PATCH] docs: Add fat arrows to Text API --- docs/api/nodes/text.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/nodes/text.md b/docs/api/nodes/text.md index 413655e1b..3c65cc552 100644 --- a/docs/api/nodes/text.md +++ b/docs/api/nodes/text.md @@ -16,22 +16,22 @@ interface Text { ### Retrieval methods -#### `Text.matches(text: Text, props: Partial): boolean` +#### `Text.matches(text: Text, props: Partial) => boolean` Check if a `text` matches a set of `props`. -#### `Text.decorations(node: Text, decorations: Range[]): Text[]` +#### `Text.decorations(node: Text, decorations: Range[]) => Text[]` Get the leaves for a text node, given `decorations`. ### Check methods -#### `Text.equals(text: Text, another: Text, options?): boolean` +#### `Text.equals(text: Text, another: Text, options?) => boolean` Check if two text nodes are equal. Options: `{loose?: boolean}` -#### `Text.isText(value: any): value is Text` +#### `Text.isText(value: any) => value is Text` Check if a `value` implements the `Text` interface.