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;