Skip to content

Commit

Permalink
fix ts build
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Nov 26, 2024
1 parent 0d10809 commit 734edfd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions atciss-frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default tseslint.config(
rules: {
"react/no-unknown-property": ["error", { ignore: ["sx"] }],
"react/prop-types": ["error", { ignore: ["pane"] }],
"@typescript-eslint/no-invalid-void-type": "off",
},
},
)
12 changes: 6 additions & 6 deletions atciss-frontend/src/services/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const api = createApi({
}),
}),

areas: builder.query<AreaBooking[], null>({
areas: builder.query<AreaBooking[], void>({
query: () => ({
url: "areas",
}),
Expand All @@ -144,7 +144,7 @@ export const api = createApi({
// }),
// }),

controllers: builder.query<Controller[], null>({
controllers: builder.query<Controller[], void>({
query: () => ({
url: "vatsim/controllers",
}),
Expand Down Expand Up @@ -194,21 +194,21 @@ export const api = createApi({
params: icaoList.map((icao) => ["icao", icao]),
}),
}),
notamsSeen: builder.query<string[], null>({
notamsSeen: builder.query<string[], void>({
query: () => ({
url: "notam/read",
}),
providesTags: ["notamSeen"],
}),
notamSeen: builder.mutation<null, string>({
notamSeen: builder.mutation<void, string>({
query: (id) => ({
url: "notam/read",
params: { id },
method: "POST",
}),
invalidatesTags: ["notamSeen"],
}),
notamUnseen: builder.mutation<null, string>({
notamUnseen: builder.mutation<void, string>({
query: (id) => ({
url: "notam/read",
params: { id },
Expand All @@ -217,7 +217,7 @@ export const api = createApi({
invalidatesTags: ["notamSeen"],
}),

sectors: builder.query<SectorData, null>({
sectors: builder.query<SectorData, void>({
query: () => ({
url: "airspace",
}),
Expand Down

0 comments on commit 734edfd

Please sign in to comment.