mirror of
https://github.com/ershisan99/DevToysWeb.git
synced 2026-01-07 05:02:10 +00:00
5 lines
191 B
TypeScript
5 lines
191 B
TypeScript
import { fromThrowable } from "neverthrow";
|
|
|
|
export const safeEncodeURIComponent = fromThrowable(encodeURIComponent);
|
|
export const safeDecodeURIComponent = fromThrowable(decodeURIComponent);
|