From 01e35552132848ff29a680d2792cf0382e8d58ea Mon Sep 17 00:00:00 2001 From: Natalia Tepluhina Date: Sun, 19 Feb 2023 18:28:23 +0100 Subject: [PATCH] Revert "fix: typing component refs (#2210)" This reverts commit 9c1c4cae7e0509f1653611883d52ce12aec6197e. --- src/guide/typescript/composition-api.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/guide/typescript/composition-api.md b/src/guide/typescript/composition-api.md index 4151762576..69e98b67fe 100644 --- a/src/guide/typescript/composition-api.md +++ b/src/guide/typescript/composition-api.md @@ -401,15 +401,14 @@ defineExpose({ ``` -In order to get the instance type of `MyModal`, we need to first get its type via `typeof`, then use Vue's `ComponentPublicInstance` utility to extract its instance type: +In order to get the instance type of `MyModal`, we need to first get its type via `typeof`, then use TypeScript's built-in `InstanceType` utility to extract its instance type: ```vue{5}