forked from lumeland/lume
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
32 lines (29 loc) · 787 Bytes
/
types.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
import type { Engine, Helper } from "./core/renderer.ts";
import type { Data as PageData, Page } from "./core/file.ts";
import type { Loader } from "./core/loaders/mod.ts";
import type { default as Site, Plugin } from "./core/site.ts";
import type { Archetype } from "./cli/create.ts";
import type { Middleware, RequestHandler } from "./core/server.ts";
declare global {
namespace Lume {
export type {
Archetype,
Engine,
Loader,
Middleware,
Page,
Plugin,
RequestHandler,
Site,
};
/** The page data */
export interface Data extends PageData {
// deno-lint-ignore no-explicit-any
[index: string]: any;
}
/** The page helpers */
export interface Helpers {
[key: string]: Helper;
}
}
}