WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit da7cf68

Browse files
committed
fix pretter complaint in changeset
1 parent a8b11cc commit da7cf68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.changeset/rich-cheetahs-battle.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
'slate': minor
33
---
4-
Add `isEditorNode`, `isElementNode`, and `isTextNode` as alternative type guards for when we already know the object is a node.
4+
5+
Add `Editor.isEditorNode`, `Element.isElementNode`, and `Text.isTextNode` as alternative type guards for when we already know the object is a node.
56
Use these new functions instead of `isEditor`, `isElement`, and `isText` whenever possible, the classic functions are only necessary for typechecking an entirely unknown object.
67
===

0 commit comments

Comments
 (0)