🐛 Fix linting issues (#1642)

This commit is contained in:
Luke Vella 2025-03-27 12:02:40 +00:00 committed by GitHub
parent ba84b40776
commit 6b914610d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 155 additions and 174 deletions

View file

@ -13,13 +13,6 @@ type ToasterToast = ToastProps & {
action?: ToastActionElement;
};
const actionTypes = {
ADD_TOAST: "ADD_TOAST",
UPDATE_TOAST: "UPDATE_TOAST",
DISMISS_TOAST: "DISMISS_TOAST",
REMOVE_TOAST: "REMOVE_TOAST",
} as const;
let count = 0;
function genId() {
@ -27,7 +20,12 @@ function genId() {
return count.toString();
}
type ActionType = typeof actionTypes;
type ActionType = {
ADD_TOAST: "ADD_TOAST";
UPDATE_TOAST: "UPDATE_TOAST";
DISMISS_TOAST: "DISMISS_TOAST";
REMOVE_TOAST: "REMOVE_TOAST";
};
type Action =
| {