Skip to content

Commit 70dc4ae

Browse files
committed
Remove unecessary type
1 parent 542a563 commit 70dc4ae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

site/src/testHelpers/entities.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1263,13 +1263,11 @@ type MockAPIOutput = {
12631263
isAxiosError: boolean
12641264
}
12651265

1266-
type makeMockValidationApiErrorFunction = (input: MockAPIInput) => MockAPIOutput
1267-
1268-
export const makeMockValidationApiError: makeMockValidationApiErrorFunction = ({
1266+
export const makeMockValidationApiError = ({
12691267
message,
12701268
detail,
12711269
validations,
1272-
}) => ({
1270+
}: MockAPIInput): MockAPIOutput => ({
12731271
response: {
12741272
data: {
12751273
message: message ?? "Something went wrong.",

0 commit comments

Comments
 (0)