How can I use defineProps and defineSlots like in TypeScript, but with JSDoc? #9527
              
                Unanswered
              
          
                  
                    
                      coolCucumber-cat
                    
                  
                
                  asked this question in
                Help/Questions
              
            Replies: 0 comments
  
    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.
-
I have type definitions for my props and slots using @typedef because I'm not allowed to use TypeScript, but I still need to have proper type definitions for props and slots. Using the runtime type declarations doesn't work, because I need more complex types than that and runtime declarations don't even work for defineSlots.
So what's the equivalent of
and
I tried to use @type to cast it, but that only works locally, it somehow doesn't do anything when actually using the component
Beta Was this translation helpful? Give feedback.
All reactions