Subscribe on changes!

Add `ComponentCustomProperties` and `ComponentCustomOptions` usage into TS documentation

avatar
Dec 1st 2020

What problem does this feature solve?

Seems like the instruction on how to type ComponentCustomProperties and ComponentCustomOptions aren't covered by the TS integration page of Vue3 docs.

I could find some examples into the TSDocs of the related interfaces.

https://github.com/vuejs/vue-next/blob/11a76ebd94932d04a54c8c60e60121ecf13c35a9/packages/runtime-core/src/componentPublicInstance.ts#L66

https://github.com/vuejs/vue-next/blob/11a76ebd94932d04a54c8c60e60121ecf13c35a9/packages/runtime-core/src/componentOptions.ts#L79

This problem has been raised here but apparently ignored or misunderstood.

What does the proposed API look like?

Adding a section about global plugin usage as there where in Vue2 docs

avatar
Dec 1st 2020

Can you open an issue or pull request in the vuejs/docs-next repository?

avatar
Dec 1st 2020

Sure, didn't know there were a separate repo

avatar
Feb 4th 2021

What problem does this feature solve?

Seems like the instruction on how to type ComponentCustomProperties and ComponentCustomOptions aren't covered by the TS integration page of Vue3 docs.

I could find some examples into the TSDocs of the related interfaces.

https://github.com/vuejs/vue-next/blob/11a76ebd94932d04a54c8c60e60121ecf13c35a9/packages/runtime-core/src/componentPublicInstance.ts#L66

https://github.com/vuejs/vue-next/blob/11a76ebd94932d04a54c8c60e60121ecf13c35a9/packages/runtime-core/src/componentOptions.ts#L79

This problem has been raised here but apparently ignored or misunderstood.

What does the proposed API look like?

Adding a section about global plugin usage as there where in Vue2 docs

but after i add as the examples,my app can't work.typescript still can't find what i set in app.config.globaleProperties.Only defineComponent can work