web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

resolve.ts (257B)


      1 import type { IError } from "@radroots/types-bindings";
      2 import type { ResolveError } from "@radroots/utils";
      3 
      4 export const is_error = <T>(value: ResolveError<T>): value is IError<string> =>
      5     typeof value === "object" && value !== null && "err" in value;