forked from maplelabs/FOSS-Hub-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.d.ts
52 lines (50 loc) · 1.73 KB
/
config.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
49
50
51
52
// SCHEMAS IMPORTS
import { BlogServiceSchema } from './services/Blogs/config';
import { GitHubServiceSchema } from './services/GitHub/config';
import { SmallDragonSchema } from './templates/footers/SmallDragon/config';
import { ElectricGorillaSchema } from './templates/headers/ElectricGorilla/config';
import { AggressiveClownfishSchema } from './templates/sections/AggressiveClownfish/config';
import { AnnualFishSchema } from './templates/sections/AnnualFish/config';
import { GoodFoxSchema } from './templates/sections/GoodFox/config';
import { MiniatureAardwolfSchema } from './templates/sections/MiniatureAardwolf/config';
import { RainyCoralSchema } from './templates/sections/RainyCoral/config';
import { SpotlessAntelopeSchema } from './templates/sections/SpotlessAntelope/config';
import { UltimateCardinalSchema } from './templates/sections/UltimateCardinal/config';
interface Config {
render: 'static' | 'server' | 'client';
meta?: Meta;
header: HeadersTemplates;
body: { sections: Array<SectionsTemplates> };
footer: FootersTemplates;
pages:
| { [k: string]: Partial<Config> }
| (() => Promise<{ [k: string]: Partial<Config> }>);
}
type Meta ={
title?: string;
description?: string;
robots?: string;
favicon?: string;
}
export interface ServiceConfig // eslint-disable-line
extends BlogServiceSchema,
GitHubServiceSchema {}
type HeadersTemplates =
// HEADERS SCHEMAS
ElectricGorillaSchema |
null;
type SectionsTemplates =
// SECTIONS SCHEMAS
AnnualFishSchema |
UltimateCardinalSchema |
SpotlessAntelopeSchema |
AggressiveClownfishSchema |
GoodFoxSchema |
MiniatureAardwolfSchema |
RainyCoralSchema |
null;
type FootersTemplates =
// FOOTERS SCHEMAS
SmallDragonSchema |
null;
export default Config;