SafeParse

type SafeParse<TData, TUsePolyfillResponse extends boolean = false> =
  | {
      success: true;
      data: TData;
    }
  | {
      success: false;
      response: TUsePolyfillResponse extends true ? PolyfillResponse : Response;
    };

Types

Notice that something is missing? Found a typo? Think something's incomplete? Or think that something can be explained better? Feel free to open a pull request or submit an issue on the library's Github repository .