diff --git a/src/api/sfc-script-setup.md b/src/api/sfc-script-setup.md index 1d16ac88..3dab7c37 100644 --- a/src/api/sfc-script-setup.md +++ b/src/api/sfc-script-setup.md @@ -483,8 +483,8 @@ const post = await fetch(`/api/post/1`).then((r) => r.json()) ## Import Statements {#imports-statements} -Import statements in vue follow [ECMAScript module specification](https://nodejs.org/api/esm.html). -In addition, you can use aliases defined in your build tool configuration: +Во Vue import statements следуют [спецификации модулей ECMAScript](https://nodejs.org/api/esm.html). +Кроме того, вы можете использовать алиасы, определённые в конфигурации вашего инструмента сборки.: ```vue ``` -You can use `@vue-generic` the directive to pass in explicit types, for when the type cannot be inferred: +Вы можете использовать директиву `@vue-generic` для передачи явных типов, когда система не может вывести их автоматически: ```vue ``` -In order to use a reference to a generic component in a `ref` you need to use the [`vue-component-type-helpers`](https://www.npmjs.com/package/vue-component-type-helpers) library as `InstanceType` won't work. +Чтобы использовать ссылку на generic-компонент в `ref`, необходима библиотека [`vue-component-type-helpers`](https://www.npmjs.com/package/), так как `InstanceType` в этом случае неприменим. ```vue