-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnomos.d.ts
45 lines (37 loc) · 1.24 KB
/
nomos.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
import angular from '@types/angular'
import moment from './web/components/bower/moment/moment'
type CouldBeBoth<T> = T | T[]
declare global {
var moment: moment.fn
var $timeout: angular.ITimeoutService
interface Date {
format: (format: string) => string
shortMonths: 'Jan' | 'Feb' | 'Mar' | 'Apr' | 'May' | 'Jun' | 'Jul' | 'Aug' | 'Sep' | 'Oct' | 'Nov' | 'Dec'
longMonths:
| 'January'
| 'February'
| 'March'
| 'April'
| 'May'
| 'June'
| 'July'
| 'August'
| 'September'
| 'October'
| 'November'
| 'December'
shortDays: 'Sun' | 'Mon' | 'Tue' | 'Wed' | 'Thu' | 'Fri' | 'Sat'
longDays: 'Sunday' | 'Monday' | 'Tuesday' | 'Wednesday' | 'Thursday' | 'Friday' | 'Saturday'
}
type HighchartsOptions = string | Record<string, unknown>
interface Highcharts {
chart: (element: HTMLElement, options?: HighchartsOptions) => void
getOptions: () => CouldBeBoth<Record<string | number> | Array<string | number | object>>
}
var Highcharts: Highcharts
}
declare module 'angular' {
interface IScope {
options?: HighchartsOptions
}
}