Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

403 B
Raw Blame
export type TableData = Record<string, unknown>;

export interface ApiError {
  message: string;
  code?: string;
  details?: unknown;
}

export function isApiError(error: unknown): error is ApiError {
  return typeof error === "object" && error !== null && "message" in error && typeof (error as ApiError).message === "string";
}

export type ToastFunction = (message: string) => void | Promise<void>;