-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
executable file
·91 lines (77 loc) · 1.78 KB
/
index.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
84
85
86
87
88
89
90
91
import "rabotify/src/util/helpers";
import Vue, { PluginFunction } from "vue";
declare class Rabotify {
static install: PluginFunction<never>;
}
declare interface RabotifyApplication {
bottom: number;
left: number;
right: number;
top: number;
}
declare interface RabotifyBreakpoint {
name: string;
height: number;
width: number;
xl: boolean;
xlOnly: boolean;
lg: boolean;
lgAndDown: boolean;
lgAndUp: boolean;
lgOnly: boolean;
md: boolean;
mdAndDown: boolean;
mdAndUp: boolean;
mdOnly: boolean;
sm: boolean;
smAndDown: boolean;
smAndUp: boolean;
smOnly: boolean;
xs: boolean;
xsAndDown: boolean;
xsAndUp: boolean;
xsOnly: boolean;
}
declare interface RabotifyTheme {
primary: string;
accent: string;
secondary: string;
info: string;
error: string;
success: string;
[name: string]: RabotifyThemeItem;
}
declare interface RabotifyObject {
application: RabotifyApplication;
breakpoint: RabotifyBreakpoint;
scrollTo: (target: RabotifyScrollToElement, options?: RabotifyScrollToOptions) => void
}
declare type RabotifyThemeItem = string | number
declare type VueComponent = Vue;
declare type RabotifyScrollToElement = HTMLElement | Element | VueComponent | number | string;
declare interface RabotifyScrollToOptions {
duration?: number;
offset?: number;
easing?: RabotifyScrollToEasing;
}
declare type RabotifyScrollToEasing =
((t: number) => number) |
'linear' |
'easeInQuad' |
'easeOutQuad' |
'easeInOutQuad' |
'easeInCubic' |
'easeOutCubic' |
'easeInOutCubic' |
'easeInQuart' |
'easeOutQuart' |
'easeInOutQuart' |
'easeInQuint' |
'easeOutQuint' |
'easeInOutQuint';
declare module "vue/types/vue" {
interface Vue {
$rabotify: RabotifyObject;
}
}
export default Rabotify;