forked from veeramarni/kit.ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeclarations.d.ts
More file actions
76 lines (61 loc) · 1.46 KB
/
Copy pathdeclarations.d.ts
File metadata and controls
76 lines (61 loc) · 1.46 KB
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
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 '*.gql' {
import {DocumentNode} from 'graphql';
const _: DocumentNode;
export default _;
}
declare module 'boxen' {
export interface BoxenOptions {
padding?: number;
borderColor?: string;
margin?: number;
}
export default function(message: string, options: BoxenOptions): string;
}
declare module 'koa-send' {
import * as Koa from 'koa';
interface ISendOptions {
root?: string;
index?: string;
maxAge?: number;
hidden?: boolean;
format?: boolean;
gzip?: boolean;
immutable?: boolean;
setHeaders?: Function;
extensions?: string[];
}
function send(ctx: Koa.Context, path: string, opts?: ISendOptions): Promise<string>;
namespace send {}
export = send;
}