Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/inspect/inspect-types.ts
6442 views
1
/*
2
* inspect.ts
3
*
4
* Copyright (C) 2020-2022 Posit Software, PBC
5
*/
6
7
import { Format } from "../config/types.ts";
8
import { Extension } from "../extension/types.ts";
9
import {
10
FileInclusion,
11
ProjectConfig,
12
ProjectFiles,
13
} from "../project/types.ts";
14
15
export type InspectedMdCell = {
16
start: number;
17
end: number;
18
file: string;
19
source: string;
20
language: string;
21
metadata: Record<string, unknown>;
22
};
23
24
export interface InspectedFile {
25
includeMap: FileInclusion[];
26
codeCells: InspectedMdCell[];
27
metadata: Record<string, unknown>;
28
}
29
30
export interface InspectedConfig {
31
quarto: {
32
version: string;
33
};
34
engines: string[];
35
fileInformation: Record<string, InspectedFile>;
36
}
37
38
export interface InspectedProjectConfig extends InspectedConfig {
39
dir: string;
40
config: ProjectConfig;
41
files: ProjectFiles;
42
extensions: Extension[];
43
}
44
45
export interface InspectedDocumentConfig extends InspectedConfig {
46
formats: Record<string, Format>;
47
resources: string[];
48
project?: InspectedProjectConfig;
49
}
50
51