- extends ActionCreatorWithPayload
{ +interface ThunkActionCreatorWithPayload
extends ActionCreatorWithPayload
{ (thunkArg: T): AppThunk
; } @@ -71,10 +65,7 @@ export function createThunk
(
const LINK_ID_SEPARATOR = " / ";
-export function makeLinkId(
- sourceId: LinkElement["area1"],
- targetId: LinkElement["area2"],
-): string {
+export function makeLinkId(sourceId: LinkElement["area1"], targetId: LinkElement["area2"]): string {
return sourceId + LINK_ID_SEPARATOR + targetId;
}
diff --git a/webapp/src/services/api/auth.ts b/webapp/src/services/api/auth.ts
index f5ec9407df..ee469202fb 100644
--- a/webapp/src/services/api/auth.ts
+++ b/webapp/src/services/api/auth.ts
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2024, RTE (https://www.rte-france.com)
+ * Copyright (c) 2025, RTE (https://www.rte-france.com)
*
* See AUTHORS.txt
*
@@ -14,8 +14,8 @@
import axios from "axios";
import client from "./client";
-import { RefreshDTO as UserTokensDTO } from "../../common/types";
-import { Config } from "../config";
+import type { RefreshDTO as UserTokensDTO } from "../../common/types";
+import type { Config } from "../config";
// instance sans crédentials et hooks pour l'authent
const rawAxiosInstance = axios.create();
@@ -51,10 +51,7 @@ export const refresh = async (refreshToken: string): Promise