composition-api-rfc icon indicating copy to clipboard operation
composition-api-rfc copied to clipboard

Found while reading document.

Open DinnerKang opened this issue 5 years ago • 0 comments

In api.md

  • Having props as a separate argument makes it easier to type it individually (see TypeScript-only Props Typing below) without messing up the types of other properties on the context. It also makes it possible to keep a consistent signature across setup, render and plain functional components with TSX support.

'#typescript-only-props-typing' seems to have disappeared.

To get type inference for the arguments passed to setup(), the use of defineComponent is needed. '#defineComponent' seems to have disappeared.

Thanks !

DinnerKang avatar Jun 29 '20 08:06 DinnerKang