mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2025-12-17 04:59:23 +00:00
perf: reduce bundle size of some pages
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { tryCatchK } from "fp-ts/lib/Option";
|
||||
import { fromThrowable } from "neverthrow";
|
||||
|
||||
export const safeEncodeURIComponent = tryCatchK(encodeURIComponent);
|
||||
export const safeDecodeURIComponent = tryCatchK(decodeURIComponent);
|
||||
export const safeEncodeURIComponent = fromThrowable(encodeURIComponent);
|
||||
export const safeDecodeURIComponent = fromThrowable(decodeURIComponent);
|
||||
|
||||
Reference in New Issue
Block a user