Carlos Rodrigues

Results 33 issues of Carlos Rodrigues

## Summary Introduce Generic components on `` and on `defineComponent` ## Links - [Full Rendered Proposal](https://github.com/pikax/rfcs/blob/generic_component/active-rfcs/0000-generic-components.md) - [Discussion Thread](https://github.com/vuejs/rfcs/discussions/436) --- **Important: Do NOT comment on this PR. Please use the...

## Summary Allow `attrs` to behave like `props` for a similar ReactJS behaviour. ```ts interface CompProps { name: string age: number } defineComponent({ noProps: true, // or props: null setup(props){...

Add support for https://github.com/vuejs/core/pull/9556 Still work in progress.

On v3 there's no more `$listeners` and users might rely on that to handle certain case ```ts // v2 if($listeners['my-event']) { // do something $listeners['my-event']() } ``` In v3 the...

vue-3-migration-guide

closes #6063 based on https://github.com/vuejs/core/pull/6124 Not exposing the `whitespace` option to the context because I don't think ``` // pseudo-node SlotNode(vIf) TextNode('') SlotNode(vElse) ``` Is possible without the whitespace preserve,...

ready to merge
scope: compiler
🔩 p2-edge-case

fix https://github.com/vuejs/core/issues/9649 Appends slot information as `props`, since the SlotType relies on a symbol, that won't bleed out to props. I personally don't really like this approach, since I would...

scope: types
ready for review

Adding type helpers to easy the transition from React to Vue. ## Motivation People coming from `React` are used to have this type helpers to type DOM events, which in...

scope: types
:cake: p2-nice-to-have
ready for review

fix #3102 Allow generic components through a class component declaration. Class maintain the correct type, if we use function or even the current DefineComponent the finer type will be lost....

scope: types

Requires [[email protected]](https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/) > NOTE: There's some build errors when updating to [email protected], this PR is not meant to fix those errors, only to implement string type inference ![image](https://user-images.githubusercontent.com/4620458/93661252-46c61080-fa4e-11ea-8728-1aa761abe874.png) ![image](https://user-images.githubusercontent.com/4620458/93661265-59d8e080-fa4e-11ea-9c99-8bf821f12263.png) ![image](https://user-images.githubusercontent.com/4620458/93661279-7a089f80-fa4e-11ea-829a-5c82a8b9e2e9.png)...

scope: types
version: minor
:cake: p2-nice-to-have

Based on https://github.com/vuejs/core/pull/3039

scope: types
:cake: p2-nice-to-have