Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add schema extraction option + resolve inline objects + js file resolution #1656

Merged
merged 13 commits into from Jul 31, 2022
Merged

add schema extraction option + resolve inline objects + js file resolution #1656

merged 13 commits into from Jul 31, 2022

Conversation

stafyniaksacha
Copy link
Collaborator

@stafyniaksacha stafyniaksacha commented Jul 29, 2022

  • Add options to createComponentMetaChecker to disable schema generation, and to ignore resolving types (usefull for internal types):
    const checker = metaChecker.createComponentMetaChecker(tsconfigPath, {
      schema: {
        enabled: true,
        ignore: ['RouteLocationRaw', 'VNode'],
      }
    });
  • Exports types:
    import type { 
      ComponentMeta, 
      PropertyMeta, 
      EventMeta, 
      SlotMeta, 
      ExposeMeta 
    } from 'vue-component-meta'
  • I excluded props related to event (ex: onClose), this avoids duplication with events meta
  • We can now parse javascript components! (still requires setup or defineComponents)

@stafyniaksacha stafyniaksacha marked this pull request as draft July 30, 2022 12:29
@stafyniaksacha stafyniaksacha changed the title Vue meta/expose interfaces add schema extraction option + resolve inline objects Jul 30, 2022
@stafyniaksacha stafyniaksacha changed the title add schema extraction option + resolve inline objects add schema extraction option + resolve inline objects + js file resolution Jul 30, 2022
@stafyniaksacha stafyniaksacha marked this pull request as ready for review July 30, 2022 18:27
@johnsoncodehk johnsoncodehk merged commit 8802df8 into vuejs:master Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants