core icon indicating copy to clipboard operation
core copied to clipboard

Seems that design limitation in TypeScript mentioned in documentation is fixed

Open mPyth opened this issue 2 years ago • 3 comments

What problem does this feature solve?

Quotation from this documentation page : "Because of a design limitation in TypeScript, you have to be careful when using function values for validator and default prop options ..." . In this sentence "design limitation" links to this GitHub ticket which is mentioned as fixed 19 days ago in this ticket.

What does the proposed API look like?

Considering mentioned TypeScript limitation does not exist any more Vue could be improved.

mPyth avatar Apr 22 '22 20:04 mPyth

Assuming we don't have to adjust our types and this just works, this limitation still exist for TS <4.7 (and that version is still in beta afaik).

When 4.7 is released and we have tested this, we could move this to the docs repo and amend the docs accordingly.

LinusBorg avatar Apr 22 '22 22:04 LinusBorg

Related docs PR: https://github.com/vuejs/docs/pull/1853

skirtles-code avatar Jul 25 '22 08:07 skirtles-code

Cool, thanks. Closing this as it's already done?

LinusBorg avatar Jul 25 '22 08:07 LinusBorg

Closing as the documentation has been updated

haoqunjiang avatar Mar 15 '23 09:03 haoqunjiang