plugin parameters "root" cannot check by "instanceof" #2056
Closed
chapman-cc
started this conversation in
General
Replies: 2 comments 2 replies
-
Unfortunately This is why we use The problem with (For |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Track this from the creator |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
the plugin return method
Oncefirst parameter "root" is not instanceof RootI'm writing a plugin, using instanceof to check on when passing node into my functions for mutations
but even if the JSDocs indicating the type is correct, checking on debug console the prototype is correct,
it still threw an error
I know I can check
node.type === "root"to get pass this but I still find not able to use instanceof weirdExample
Beta Was this translation helpful? Give feedback.
All reactions