From 900e01f509c6421f8b43bca2d170666642595e6d Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sat, 7 Dec 2019 13:02:26 +0000 Subject: [PATCH] docs: add information on adding vue-shim.d.ts closes #153 --- docs/guide/setup.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/guide/setup.md b/docs/guide/setup.md index 4f0178b0..7f16c389 100644 --- a/docs/guide/setup.md +++ b/docs/guide/setup.md @@ -62,6 +62,16 @@ and create a **`tsconfig.json`** file : } ``` +You will also need to provide types for Vue files by adding the following type declaration: + +`vue-shim.d.ts`: +```ts +declare module "*.vue" { + import Vue from 'vue' + export default Vue +} +``` + ::: tip `@nuxt/typescript-build` ships `@nuxt/types`, so there's no need to install it independently. :::