Repository navigation
Feature request: Types for the props parameter of defineModel's default function
#836
kleinfreund
started this conversation in
General
Replies: 1 comment 2 replies
|
I think this should be achievable in volar. cc @KazariEX |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The
propsparameter passed to adefineModel's default function is currently typed asRecord<string, unknown>:or as whatever type one annotates the
propsparameter by hand:Instead, the parameter should be typed matching the
definePropsinterface.As an aside, this would lead to a
@typescript-eslint/no-unused-varserror in the destructuring assignment ofdefaultValuebut that's a separate topic.All reactions