Skip to content

Commit

Permalink
remove 'any' default typing
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm authored and PurkkaKoodari committed Mar 7, 2024
1 parent 99e1e30 commit ba4ff29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ilmomasiina-components/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function configureApi(url: string) {
apiUrl = url;
}

export default async function apiFetch<T = any>(uri: string, {
export default async function apiFetch<T = unknown>(uri: string, {
method = 'GET', body, headers, signal,
}: FetchOptions = {}) {
const allHeaders = {
Expand Down
2 changes: 1 addition & 1 deletion packages/ilmomasiina-frontend/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const RENEW_LOGIN_THRESHOLD = 5 * 60 * 1000;
* action if necessary.
*/
// eslint-disable-next-line max-len
export default async function adminApiFetch<T = any>(uri: string, opts: AdminApiFetchOptions, dispatch: DispatchAction) {
export default async function adminApiFetch<T = unknown>(uri: string, opts: AdminApiFetchOptions, dispatch: DispatchAction) {
try {
const { accessToken } = opts;
if (!accessToken) {
Expand Down

0 comments on commit ba4ff29

Please sign in to comment.