2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-14 09:52:26 +03:00

Merge pull request #260 from salvadornico/master

Removed old Typescript snippet from README
This commit is contained in:
Sébastien Chopin
2018-09-23 11:12:24 +01:00
committed by GitHub
-15
View File
@@ -813,18 +813,3 @@ If this were not the case, you would have to instruct Babel to convert `default`
# Examples
To run the examples; clone this repository & run `npm install` in the root directory, and then run `npm run dev`. Head to http://localhost:8080.
# TypeScript Support
If you have problems with types using vue-meta, then you're most probably using vue-class-component.
In any troublesome situation, just add the following ambient declaration to your types:
```js
import { MetaInfo } from 'vue-meta';
declare module "vue/types/vue" {
interface Vue {
metaInfo?: MetaInfo | (() => MetaInfo)
}
}
```