mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-17 20:49:24 +00:00
perf: reduce bundle size of some pages
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
import { tryCatchK } from "fp-ts/lib/Option";
|
||||
import { fromThrowable } from "neverthrow";
|
||||
|
||||
export const safeJsonParse = tryCatchK(JSON.parse);
|
||||
export const safeJsonParse = fromThrowable(JSON.parse);
|
||||
|
||||
Reference in New Issue
Block a user