SafeFn
Creating a SafeFn

Getting started

Installation

Please note that due to an incompatibility in types, NeverThrow version 8 or higher is required.

npm i safe-fn zod neverthrow

Instantiating

You can create a SafeFn by using the createSafeFn() method.

import { createSafeFn } from "safe-fn";
 
const myySafeFunction = createSafeFn();

On this page