-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
53 lines (50 loc) · 936 Bytes
/
types.ts
File metadata and controls
53 lines (50 loc) · 936 Bytes
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
import { Lang } from "./src/_includes/i18n/index.11ty";
// types.ts
export interface Assets {
css: string;
js: {
main: string[]
}
}
export interface EleventyDefaults {
title: string;
content: string;
styles: string;
layout?: string;
lang: Lang;
collections: {
all: any[];
}
page: {
url: string;
inputPath: string;
fileSlug: string;
filePathStem: string;
outputFileExtension: string;
templateSyntax: 'ts';
date: Date;
outputPath: string;
}
eleventy: {
version: string;
generator: string;
env: {
source: string;
runMode: string;
config: string;
root: string;
},
directories: {
input: string;
inputFile?: string;
inputGlob?: string;
data: string;
includes: string;
layouts?: string;
output: string;
}
}
}
export interface Eleventy extends EleventyDefaults {
assets: Assets;
}