mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-23 07:20:35 +03:00
Finally solved the types.
This commit is contained in:
Vendored
+1
-12
@@ -33,18 +33,7 @@ export interface MetaInfo {
|
||||
charset?: string,
|
||||
content?: string,
|
||||
'http-equiv'?: 'content-security-policy' | 'refresh',
|
||||
name?: 'application-name'
|
||||
| 'author'
|
||||
| 'description'
|
||||
| 'generator'
|
||||
| 'keywords'
|
||||
| 'referrer'
|
||||
| 'creator'
|
||||
| 'googlebot'
|
||||
| 'publisher'
|
||||
| 'robots'
|
||||
| 'slurp'
|
||||
| 'viewport',
|
||||
name?: string,
|
||||
[key: string]: any
|
||||
}[]
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"module": "es2015",
|
||||
"moduleResolution": "node",
|
||||
"lib": [
|
||||
"es5",
|
||||
"dom",
|
||||
"es2015.promise"
|
||||
],
|
||||
"strict": true,
|
||||
"noEmit": true
|
||||
},
|
||||
"include": [
|
||||
"*.d.ts"
|
||||
]
|
||||
}
|
||||
Vendored
+2
-2
@@ -7,12 +7,12 @@ import { MetaInfo } from './index';
|
||||
|
||||
declare module "vue/types/options" {
|
||||
interface ComponentOptions<V extends Vue> {
|
||||
metaInfo?: MetaInfo | (() => MetaInfo);
|
||||
metaInfo?: MetaInfo | (() => MetaInfo)
|
||||
}
|
||||
}
|
||||
|
||||
declare module "vue/types/vue" {
|
||||
interface Vue {
|
||||
metaInfo?: MetaInfo | (() => MetaInfo);
|
||||
metaInfo?: MetaInfo | (() => MetaInfo)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user