Skip to content

Commit 8ba74b8

Browse files
authored
Update Typescript type in faq
If you have strict type checking and don't allow `any`, you should specify your SVG's as a `VueConstructor` of type `Vue`.
1 parent 492fc20 commit 8ba74b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/faq.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ To fix that you need to provide a type definition which is needed by TypeScript
349349

350350
``` ts
351351
declare module '*.svg' {
352-
const content: any;
352+
import Vue, {VueConstructor} from 'vue';
353+
const content: VueConstructor<Vue>;
353354
export default content;
354355
}
355356
```

0 commit comments

Comments
 (0)