-
Notifications
You must be signed in to change notification settings - Fork 434
Expand file tree
/
Copy pathinspect-types.ts
More file actions
49 lines (43 loc) · 1022 Bytes
/
inspect-types.ts
File metadata and controls
49 lines (43 loc) · 1022 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
/*
* inspect.ts
*
* Copyright (C) 2020-2022 Posit Software, PBC
*/
import { Format } from "../config/types.ts";
import { Extension } from "../extension/types.ts";
import {
FileInclusion,
ProjectConfig,
ProjectFiles,
} from "../project/types.ts";
export type InspectedMdCell = {
start: number;
end: number;
file: string;
source: string;
language: string;
metadata: Record<string, unknown>;
};
export interface InspectedFile {
includeMap: FileInclusion[];
codeCells: InspectedMdCell[];
metadata: Record<string, unknown>;
}
export interface InspectedConfig {
quarto: {
version: string;
};
engines: string[];
fileInformation: Record<string, InspectedFile>;
}
export interface InspectedProjectConfig extends InspectedConfig {
dir: string;
config: ProjectConfig;
files: ProjectFiles;
extensions: Extension[];
}
export interface InspectedDocumentConfig extends InspectedConfig {
formats: Record<string, Format>;
resources: string[];
project?: InspectedProjectConfig;
}