-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.d.ts
More file actions
42 lines (37 loc) · 816 Bytes
/
types.d.ts
File metadata and controls
42 lines (37 loc) · 816 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
import type { Data, Literal, RootContentMap } from "mdast";
import type { LRParser } from "@lezer/lr";
interface Toml extends Literal {
type: "toml";
data?: Data;
}
declare module "mdast" {
interface RootContentMap {
// Allow using TOML nodes defined by `remark-frontmatter`.
toml: Toml;
}
}
declare global {
var twttr: undefined | { widgets?: { load: () => {} } };
var parsers: Map<string, LRParser>;
}
declare module "@articles" {
const articles: {
preview: string;
filename: string;
published: string;
updated?: string;
title: string;
subtitle?: string;
tags: string[];
author: {
name: string;
link: string;
};
motd: {
url: string;
alternative_image_url: string;
};
og: string;
}[];
export default articles;
}