From a8e5e2c39a92ce8839931292307f200551d5779b Mon Sep 17 00:00:00 2001 From: Alex Van Liew Date: Tue, 17 May 2022 09:32:17 -0700 Subject: [PATCH] add note about module exports --- src/migration-build.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/migration-build.md b/src/migration-build.md index fe0ec81..0df6d62 100644 --- a/src/migration-build.md +++ b/src/migration-build.md @@ -167,6 +167,8 @@ The following workflow walks through the steps of migrating an actual Vue 2 app export { configureCompat } } ``` + + Note that this module declaration must be placed in a `*.d.ts` file which contains at least one other top-level import or export (`export {}` is enough) in order for these types to [augment the module](https://vuejs.org/guide/typescript/options-api.html#type-augmentation-placement) as opposed to overwriting it. 5. At this point, your application may encounter some compile-time errors / warnings (e.g. use of filters). Fix them first. If all compiler warnings are gone, you can also set the compiler to Vue 3 mode.