Skip to content

Commit

Permalink
fix(types): With our updated types packages need to adjust types
Browse files Browse the repository at this point in the history
  • Loading branch information
Lombardoc4 committed Aug 1, 2024
1 parent 2eac1f0 commit 8a73265
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/api/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const fetchAPI = async (endpoint: string) => {
.catch((err) => {
if (typeof err.cause.json === 'function') return err.cause.json();

err.cause;
return err.cause;
});

return data;
Expand Down
4 changes: 2 additions & 2 deletions src/components/ui/use-toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type ToasterToast = ToastProps & {
action?: ToastActionElement;
};

const actionTypes = {
const _actionTypes = {
ADD_TOAST: 'ADD_TOAST',
UPDATE_TOAST: 'UPDATE_TOAST',
DISMISS_TOAST: 'DISMISS_TOAST',
Expand All @@ -29,7 +29,7 @@ function genId() {
return count.toString();
}

type ActionType = typeof actionTypes;
type ActionType = typeof _actionTypes;

type Action =
| {
Expand Down

0 comments on commit 8a73265

Please sign in to comment.