Renamed interfaces to IInterface

This commit is contained in:
Siklos 2022-08-12 09:51:20 +02:00
parent 6c601429b9
commit 4d17249818
32 changed files with 106 additions and 105 deletions

View file

@ -1,10 +1,10 @@
import { Configuration } from '../../Interfaces/Configuration';
import { IConfiguration } from '../../Interfaces/IConfiguration';
/**
* Fetch the configuration from the API
* @returns {Configation} The model of the configuration for the application
*/
export async function fetchConfiguration(): Promise<Configuration> {
export async function fetchConfiguration(): Promise<IConfiguration> {
const url = `${import.meta.env.VITE_API_URL}`;
// The test library cannot use the Fetch API
// @ts-expect-error
@ -15,7 +15,7 @@ export async function fetchConfiguration(): Promise<Configuration> {
})
.then(async(response) =>
await response.json()
) as Configuration;
) as IConfiguration;
}
return await new Promise((resolve) => {
const xhr = new XMLHttpRequest();