-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshim.d.ts
41 lines (35 loc) · 1.13 KB
/
shim.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
declare module "post:*.astro" {
import type { AstroInstance } from "astro";
const component: AstroInstance["default"];
export default component;
export const excerpt: string;
export const metadata: post.PostMeta;
export const toc: [string, string][];
export const componentNames: string[];
}
declare module "post:info" {
const _: Record<string, post.PostInfo>;
export const timeDesc: string[];
export const allCategory: Record<string, string[]>;
export const allTag: Record<string, string[]>;
export const allSeries: Record<string, string[]>;
export const mapCategoryTag: Record<string, Set<string>>;
export const mapCategorySeries: Record<string, Set<string>>;
export default _;
}
declare module "post:import" {
const _: Record<string, () => Promise<typeof import("post:*.astro")>>;
export default _;
}
declare module "@/meta/friends.yaml" {
const friends: friend.Friend[];
export { friends };
}
declare module "@/meta/category.yaml" {
const category: Record<string, Category>;
export { category };
}
declare module "virtual:site-meta" {
const siteMeta: siteMeta.SiteMeta;
export default siteMeta;
}