-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodules.d.ts
46 lines (37 loc) · 975 Bytes
/
modules.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
declare module '*.njk' {
const value: import("nunjucks").Template;
export default value;
}
declare module '*.less' {
const value: string;
export default value;
}
declare module '~static/locales' {
const value: Record<string, Record<string, string>>;
export default value;
}
declare module 'router' {
export default import('express').Router;
}
declare module 'window' {
export default Window;
}
declare module 'nighthawk' {
interface listenOptions {
popstate: boolean;
interceptClicks: boolean;
dispatch: boolean;
}
interface Router {
use: import("express").IRouterMatcher
listen(options?: listenOptions): void
changeRoute(path: string): void
}
interface nighthawkOptions {
queryParser: AnyFunction;
base: string;
}
function nighthawk(options?: nighthawkOptions): Router;
const NightHawk: typeof nighthawk;
export default NightHawk;
}