forked from veeramarni/kit.ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeclarations.d.ts
48 lines (39 loc) · 936 Bytes
/
declarations.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
interface NodeModule {
hot: {
accept(path: string, callback: () => void): void;
}
}
declare const SERVER: boolean;
interface Window {
__STATE__: any;
__REDUX_DEVTOOLS_EXTENSION__(): any;
}
declare module 'microseconds' {
export interface DateObject {
microseconds: number;
milliseconds: number;
seconds: number;
minutes: number;
hours: number;
days: number;
}
export function now(): number;
export function parse(timeStamp: number): DateObject;
export function since(timeStamp: number): number;
}
declare module 'koa-helmet' {
import { Middleware } from 'koa';
export default function(): Middleware;
}
declare module '*.svg' {
const _: string;
export default _;
}
declare module 'boxen' {
export interface BoxenOptions {
padding?: number;
borderColor?: string;
margin?: number;
}
export default function(message: string, options: BoxenOptions): string;
}