composition-api-rfc
composition-api-rfc copied to clipboard
Found while reading document.
In api.md
- Having
propsas 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 acrosssetup,renderand 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 !