Skip to content

Conversation

pikax
Copy link
Member

@pikax pikax commented Aug 18, 2020

Refactor defineComponent

Make it easier to retrieve component types:

declare function extractComponentOptions<Props, RawBindings>(
  obj: Component<Props, RawBindings>
): {
  props: Props
  rawBindings: RawBindings
  setup: ShallowUnwrapRef<RawBindings>
}

@pikax pikax marked this pull request as ready for review August 18, 2020 13:18
@pikax pikax changed the title types(runtime-core): move jsx defineComponent to jsx.d.ts types(runtime-core): refractor defineComponent Aug 18, 2020
@pikax pikax requested a review from yyx990803 August 20, 2020 11:21
# Conflicts:
#	packages/runtime-core/src/apiDefineComponent.ts
@posva posva changed the title types(runtime-core): refractor defineComponent types(runtime-core): refactor defineComponent Aug 31, 2020
@yyx990803 yyx990803 merged commit 4fd468a into vuejs:master Sep 15, 2020
@pikax pikax deleted the types/move_jsx_types_to_jsx.d.ts branch September 15, 2020 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants