Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(app-shell, app-shell-odd): Refactor app to use unsubscribe flags #14633

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
update the notify response type
  • Loading branch information
mjhuff committed Mar 4, 2024
commit dbb66e47f31c3f1c99993317de5541c7ba488527
9 changes: 8 additions & 1 deletion app/src/redux/shell/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ interface NotifyRefetchData {
statusCode: never
}

interface NotifyUnsubscribeData extends NotifyRefetchData {
unsubscribe: boolean
}

export type NotifyNetworkError = 'ECONNFAILED' | 'ECONNREFUSED'
export type NotifyResponseData = NotifyRefetchData | NotifyNetworkError
export type NotifyResponseData =
| NotifyRefetchData
| NotifyUnsubscribeData
| NotifyNetworkError

interface File {
sha512: string
Expand Down