Skip to content

Commit c97827d

Browse files
committed
improve typing
1 parent d2bc07a commit c97827d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/tooling/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,6 @@ export function parseYaml(content: string): ReturnType<typeof yaml.parseDocument
244244
return yaml.parseDocument(content);
245245
}
246246

247-
export function serializeYaml(data: unknown): string {
247+
export function serializeYaml(data: ReturnType<typeof yaml.parseDocument>): string {
248248
return yaml.stringify(data, { singleQuote: true });
249249
}

0 commit comments

Comments
 (0)