Renamed interfaces to IInterface
This commit is contained in:
parent
6c601429b9
commit
4d17249818
32 changed files with 106 additions and 105 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue