-
-
Notifications
You must be signed in to change notification settings - Fork 73
/
vue-head.d.ts
83 lines (83 loc) · 1.92 KB
/
vue-head.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import Vue, { PluginObject } from 'vue';
declare const VueHead: PluginObject<{}>;
export = VueHead;
interface TitleOptions {
inner?: string;
separator?: string;
complement?: string;
}
interface ElementOptions extends Object {
/** Shorthand of `charset` */
ch?: string;
charset?: string;
/** Shorthand of `target` */
tg?: string;
target?: string;
/** Shorthand of `name` */
n?: string;
name?: string;
/** Shorthand of `http-equiv` */
he?: string;
'http-equiv'?: string;
/** Shorthand of `itemprop` */
ip?: string;
itemprop?: string;
/** Shorthand of `content` */
c?: string;
content?: string;
/** Shorthand of `property` */
p?: string;
property?: string;
/** Shorthand of `scheme` */
sc?: string;
scheme?: string;
/** Shorthand of `rel` */
r?: string;
rel?: string;
/** Shorthand of `href` */
h?: string;
href?: string;
/** Shorthand of `sizes` */
sz?: string;
sizes?: string;
/** Shorthand of `type` */
t?: string;
type?: string;
/** Shorthand of `src` */
s?: string;
src?: string;
/** Shorthand of `async` */
a?: boolean;
async?: boolean;
/** Shorthand of `defer` */
d?: string;
defer?: string;
/** Shorthand of `inner` */
i?: string;
inner?: string;
/**
* Option for undo tag when leave the component
* https://github.com/ktquez/vue-head#undo-elements
*/
undo?: boolean;
/**
* Id for element updating
* https://github.com/ktquez/vue-head#replace-content-the-elements
*/
id?: string;
/**
* Insert element in body
*/
body?: boolean;
}
declare module 'vue/types/options' {
interface ComponentOptions<V extends Vue> {
head?: {
title?: TitleOptions | (() => TitleOptions);
meta?: ElementOptions[] | (() => ElementOptions[]);
link?: ElementOptions[] | (() => ElementOptions[]);
script?: ElementOptions[] | (() => ElementOptions[]);
style?: ElementOptions[] | (() => ElementOptions[]);
};
}
}