mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-24 16:10:35 +03:00
Merge pull request #260 from salvadornico/master
Removed old Typescript snippet from README
This commit is contained in:
@@ -813,18 +813,3 @@ If this were not the case, you would have to instruct Babel to convert `default`
|
|||||||
# Examples
|
# 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.
|
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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|||||||
Reference in New Issue
Block a user