pocka / storybook-addon-vue-info

Info addon for Vue components
https://storybook-addon-vue-info.netlify.com/?path=/story/examples-basic-usage--simple-example
MIT License
164 stars 28 forks source link

Show class name if prop type is class #64

Closed koiketakayuki closed 5 years ago

koiketakayuki commented 5 years ago

Hi, I'm using this plugin everyday.It's really convenient. But I found that it shows "Type: unknown" when using with class prop.

  // Show Type: unknown in storybook
  @Prop({ type: SomeTypescriptClass, required: true }) someProp!: SomeTypescriptClass;

This PR fixed this problem. Thanks.

pocka commented 5 years ago

@koiketakayuki Thanks for your contribution!

Well, would you update the test case Other value will be "unknown" in src/utils/constructorToString.spec.ts that fails now?

koiketakayuki commented 5 years ago

Hi, I've updated PR. Please check it out.

日本人だったんですね! お互い頑張りましょう!

pocka commented 5 years ago

@koiketakayuki CI passed, thank you so much :)

がんばりましょう 👍