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

Does not generate variable for export {variable as var} #26

Closed
TheComputerM opened this issue Aug 17, 2020 · 3 comments
Closed

Does not generate variable for export {variable as var} #26

TheComputerM opened this issue Aug 17, 2020 · 3 comments
Assignees
Labels
bug Something isn't working Svelte V3 Issue related to Svelte V3 components

Comments

@TheComputerM
Copy link

Sample:

Expected:
Generate entry for class prop

Output:
Does not generate any entry for class or even classes

@alexprey alexprey self-assigned this Aug 17, 2020
@alexprey alexprey added bug Something isn't working Svelte V3 Issue related to Svelte V3 components labels Aug 17, 2020
alexprey added a commit that referenced this issue Aug 17, 2020
…ent.

[Added] now interface `SvelteDataItem` provides a new property `localName` with information about internal name of component property.
@alexprey
Copy link
Collaborator

Thanks for reporint an issue!
Fix it and publish new version of package to use 😉

/**
 * Comments can be placed here and it must be inhereted to export prop instance
 */
const classes = [ 'btn' ];

export { classes as class };
[
 { 
     "name": "classes", 
     "visibility": "private", 
     "description": "Comments can be placed here and it must be inhereted to export prop instance" 
 },
 { 
    "name": "class", 
    "visibility": "public", 
    "description": "Comments can be placed here and it must be inhereted to export prop instance", 
    "localName": "classes" 
 }
]

@TheComputerM
Copy link
Author

Thank you very much my dude.

@alexprey
Copy link
Collaborator

NP, just let me know if you have any other issues with that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Svelte V3 Issue related to Svelte V3 components
Projects
None yet
Development

No branches or pull requests

2 participants