We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc2d4b2 commit 74f0fb6Copy full SHA for 74f0fb6
1 file changed
src/app/lib/utils.ts
@@ -7,6 +7,10 @@ export function parseYaml(yaml: string): PublicCode | null {
7
return yaml ? (YAML.parse(yaml) as PublicCode) : null;
8
}
9
10
+export function parseYaml(yaml: string): PublicCode | null {
11
+ return yaml ? (YAML.parse(yaml) as PublicCode) : null;
12
+}
13
+
14
export function getYaml(data: PublicCode): string | null {
15
console.log("getYaml", data);
16
return data ? (YAML.stringify(linter(data)) as string) : null;
0 commit comments