There was an error while loading. Please reload this page.
1 parent 9d81c98 commit 5e64939Copy full SHA for 5e64939
1 file changed
src/quartz/QuartzConfigService.ts
@@ -66,7 +66,7 @@ export class QuartzConfigService {
66
return this.yamlDocument.toString();
67
}
68
69
- const doc = new Document(config);
+ const doc = new Document<YAMLMap>(config);
70
this.ensureSchemaComment(doc);
71
72
return doc.toString();
@@ -160,7 +160,7 @@ export class QuartzConfigService {
160
);
161
162
163
- private ensureSchemaComment(doc: Document<YAMLMap> | Document): void {
+ private ensureSchemaComment(doc: Document<YAMLMap>): void {
164
// The `yaml` library attaches a leading `# yaml-language-server: ...`
165
// line from a parsed document to the first key node's `commentBefore`,
166
// not to `doc.commentBefore` (which stays null). Checking only
0 commit comments