INNER CODE UNIT · TypeScript

count

mohammed-bahumaish/prisma-editor · src/hooks/use-toast.ts:28

  count = (count + 1) % Number.MAX_VALUE;
  return count.toString();
}

type ActionType = typeof actionTypes;

type Action =
  | {
      type: ActionType["ADD_TOAST"];
      toast: ToasterToast;
    }
  | {
      type: ActionType["UPDATE_TOAST"];
      toast: Partial<ToasterToast>;
    }
  | {
      type: ActionType["DISMISS_TOAST"];
      toastId?: ToasterToast["id"];

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…