mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-17 04:59:23 +00:00
refactor: use Options instead of Errors
This commit is contained in:
4
lib/yaml.ts
Normal file
4
lib/yaml.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import { tryCatchK } from "fp-ts/lib/Option";
|
||||
import YAML from "yaml";
|
||||
|
||||
export const safeYamlParse = tryCatchK(YAML.parse);
|
||||
Reference in New Issue
Block a user