download
raw
408 Bytes
export namespace errorUtil {
export type ErrMessage = string | { message?: string | undefined };
export const errToObj = (message?: ErrMessage): { message?: string | undefined } =>
typeof message === "string" ? { message } : message || {};
// biome-ignore lint:
export const toString = (message?: ErrMessage): string | undefined =>
typeof message === "string" ? message : message?.message;
}

Xet Storage Details

Size:
408 Bytes
·
Xet hash:
14b2212251c4552a30f80e80ed33760a86e6a0a8f425262640d0641371f4b5bc

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.