Skip to content

Commit d380b91

Browse files
authored
add note about module exports (#13)
1 parent e0f492e commit d380b91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/migration-build.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ The following workflow walks through the steps of migrating an actual Vue 2 app
167167
export { configureCompat }
168168
}
169169
```
170+
171+
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.
170172

171173
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.
172174

0 commit comments

Comments
 (0)