How to create errors like this
I'm used parse function but It doesn't look like in the photo.
9 Replies
it's uh something with using inspect from node's util class. Not entirely sure what the setup for it is.
thanks!
I have question. How to check data is object with shapeshift?
GitHub
GitHub - sapphiredev/shapeshift: Blazing fast input validation and ...
Blazing fast input validation and transformation ⚡ - GitHub - sapphiredev/shapeshift: Blazing fast input validation and transformation ⚡
I tried s.object(...).parse(...) but it gives an error directly instead of checking.
wdym
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
❯ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. ❯ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. ❯ Asking technical questions (Clarkson) ❯ How to ask questions the smart way (Raymond)
For example, if it is an object, I will return true, but I can't.
if you just need to know if something is an object use
isObject
from @sapphire/utilitiesthanks