Skip to content

Commit de2572f

Browse files
committed
Correct error handling related imports and types
1 parent 689944f commit de2572f

File tree

14 files changed

+32
-17
lines changed

14 files changed

+32
-17
lines changed

apps/cyberstorm-remix/app/p/components/ReportPackage/ReportPackageForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
import {
1212
type PackageListingReportRequestData,
1313
type RequestConfig,
14+
UserFacingError,
1415
packageListingReport,
1516
} from "@thunderstore/thunderstore-api";
1617

@@ -81,7 +82,7 @@ export function ReportPackageForm(
8182
PackageListingReportRequestData,
8283
Error,
8384
SubmitorOutput,
84-
Error,
85+
UserFacingError,
8586
InputErrors
8687
>({
8788
inputs: formInputs,

apps/cyberstorm-remix/app/p/packageEdit.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { DapperTs } from "@thunderstore/dapper-ts";
2424
import {
2525
ApiError,
2626
type PackageListingUpdateRequestData,
27+
UserFacingError,
2728
packageDeprecate,
2829
packageListingUpdate,
2930
packageUnlist,
@@ -214,7 +215,7 @@ export default function PackageListing() {
214215
PackageListingUpdateRequestData,
215216
Error,
216217
SubmitorOutput,
217-
Error,
218+
UserFacingError,
218219
InputErrors
219220
>({
220221
inputs: formInputs,

apps/cyberstorm-remix/app/p/tabs/Wiki/WikiNewPage.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
import { classnames } from "@thunderstore/cyberstorm";
2020
import {
2121
type PackageWikiPageCreateRequestData,
22+
UserFacingError,
2223
postPackageWikiPageCreate,
2324
} from "@thunderstore/thunderstore-api";
2425

@@ -111,7 +112,7 @@ export default function Wiki() {
111112
PackageWikiPageCreateRequestData,
112113
Error,
113114
SubmitorOutput,
114-
Error,
115+
UserFacingError,
115116
InputErrors
116117
>({
117118
inputs: formInputs,

apps/cyberstorm-remix/app/p/tabs/Wiki/WikiPageEdit.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
type PackageWikiPageEditRequestData,
2929
type PackageWikiPageResponseData,
3030
type RequestConfig,
31+
UserFacingError,
3132
deletePackageWikiPage,
3233
postPackageWikiPageEdit,
3334
} from "@thunderstore/thunderstore-api";
@@ -181,7 +182,7 @@ export default function WikiEdit() {
181182
PackageWikiPageEditRequestData,
182183
Error,
183184
SubmitorOutput,
184-
Error,
185+
UserFacingError,
185186
InputErrors
186187
>({
187188
inputs: formInputs,

apps/cyberstorm-remix/app/settings/teams/Teams.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { postTeamCreate } from "@thunderstore/dapper-ts";
2020
import {
2121
type RequestConfig,
2222
type TeamCreateRequestData,
23+
UserFacingError,
2324
teamCreate,
2425
} from "@thunderstore/thunderstore-api";
2526
import {
@@ -161,7 +162,7 @@ function CreateTeamForm(props: { config: () => RequestConfig }) {
161162
TeamCreateRequestData,
162163
Error,
163164
SubmitorOutput,
164-
Error,
165+
UserFacingError,
165166
InputErrors
166167
>({
167168
inputs: formInputs,

apps/cyberstorm-remix/app/settings/teams/team/tabs/Members/MemberAddForm.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
import {
1616
type RequestConfig,
1717
type TeamAddMemberRequestData,
18+
UserFacingError,
1819
teamAddMember,
1920
} from "@thunderstore/thunderstore-api";
2021

@@ -69,7 +70,7 @@ export function MemberAddForm(props: {
6970
TeamAddMemberRequestData,
7071
Error,
7172
SubmitorOutput,
72-
Error,
73+
UserFacingError,
7374
InputErrors
7475
>({
7576
inputs: formInputs,

apps/cyberstorm-remix/app/settings/teams/team/tabs/Profile/Profile.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { NewButton, NewTextInput, useToast } from "@thunderstore/cyberstorm";
1313
import {
1414
type TeamDetails,
1515
type TeamDetailsEditRequestData,
16+
UserFacingError,
1617
teamDetailsEdit,
1718
} from "@thunderstore/thunderstore-api";
1819

@@ -86,7 +87,7 @@ function ProfileForm(props: { team: TeamDetails }) {
8687
TeamDetailsEditRequestData,
8788
Error,
8889
SubmitorOutput,
89-
Error,
90+
UserFacingError,
9091
InputErrors
9192
>({
9293
inputs: formInputs,

apps/cyberstorm-remix/app/settings/teams/team/tabs/ServiceAccounts/ServiceAccounts.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
} from "@thunderstore/cyberstorm";
2323
import {
2424
type TeamServiceAccountAddRequestData,
25+
UserFacingError,
2526
teamAddServiceAccount,
2627
} from "@thunderstore/thunderstore-api";
2728

@@ -136,7 +137,7 @@ function AddServiceAccountForm(props: {
136137
TeamServiceAccountAddRequestData,
137138
Error,
138139
SubmitorOutput,
139-
Error,
140+
UserFacingError,
140141
InputErrors
141142
>({
142143
inputs: formInputs,

apps/cyberstorm-remix/app/settings/teams/team/tabs/Settings/Settings.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
import {
2525
type RequestConfig,
2626
type TeamDisbandRequestData,
27+
UserFacingError,
2728
teamDisband,
2829
teamRemoveMember,
2930
} from "@thunderstore/thunderstore-api";
@@ -257,7 +258,7 @@ function DisbandTeamForm(props: {
257258
TeamDisbandRequestData,
258259
Error,
259260
SubmitorOutput,
260-
Error,
261+
UserFacingError,
261262
InputErrors
262263
>({
263264
inputs: formInputs,

apps/cyberstorm-remix/app/settings/user/Account/Account.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
NewTextInput,
1616
useToast,
1717
} from "@thunderstore/cyberstorm";
18-
import { userDelete } from "@thunderstore/thunderstore-api";
18+
import { UserFacingError, userDelete } from "@thunderstore/thunderstore-api";
1919

2020
import "./Account.css";
2121

@@ -126,7 +126,7 @@ function DeleteAccountForm(props: {
126126
UserAccountDeleteRequestData,
127127
Error,
128128
SubmitorOutput,
129-
Error,
129+
UserFacingError,
130130
InputErrors
131131
>({
132132
inputs: formInputs,

0 commit comments

Comments
 (0)