From 1e6f60aa6dc86b3097187b29fca59e3ec03cbb91 Mon Sep 17 00:00:00 2001 From: Sunny Hirai Date: Sun, 6 Jun 2021 19:42:19 -0700 Subject: [PATCH] docs: Try options syntax with defaults --- docs/api/nodes/editor.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/api/nodes/editor.md b/docs/api/nodes/editor.md index 0ed6d4d5e..412140174 100644 --- a/docs/api/nodes/editor.md +++ b/docs/api/nodes/editor.md @@ -56,10 +56,10 @@ Get the matching ancestor above a location in the document. Options: -- `at?: Location`: Where to start at which is `editor.selection` by default. -- `match?: NodeMatch`: Narrow the match -- `mode?: 'highest' | 'lowest'`: If `lowest` (default), returns the lowest matching ancestor. If `highest`, returns the highest matching ancestor. -- `voids?: boolean`: If `false` (default), ignore void objects. If `true`, include `void` objects. +- `at?: Location = editor.selection`: Where to start at which is `editor.selection` by default. +- `match?: NodeMatch = () => true`: Narrow the match +- `mode?: 'highest' | 'lowest' = 'lowest'`: If `lowest` (default), returns the lowest matching ancestor. If `highest`, returns the highest matching ancestor. +- `voids?: boolean = false`: When `false` ignore void objects. #### `Editor.after(editor: Editor, at: Location, options?) => Point | undefined`