From aa30b2859472e2d91fb8225cc76cfc86f6598ce7 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Sun, 9 Jul 2023 15:44:13 +0100 Subject: [PATCH] Fix build --- src/util/config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/config.ts b/src/util/config.ts index db2dedb0..f0817877 100644 --- a/src/util/config.ts +++ b/src/util/config.ts @@ -22,16 +22,16 @@ import MapProvider from "@/providers/MapProvider"; import DynmapMapProvider from "@/providers/DynmapMapProvider"; const expectedConfigVersion = 1, - registeredProviders: Map MapProvider> = new Map(), + registeredProviders: Map MapProvider> = new Map(), serverProviders: Map = new Map(); /** * Registers the given {@link MapProvider} with the given id * Server entries in {@link LiveAtlasGlobalConfig} with the given id will use the given MapProvider * @param {string} id The id - * @param {new (config: any) => MapProvider} provider The MapProvider + * @param {new (name: string, config: any) => MapProvider} provider The MapProvider */ -export const registerMapProvider = (id: string, provider: new (config: any) => MapProvider) => { +export const registerMapProvider = (id: string, provider: new (name: string, config: any) => MapProvider) => { if(registeredProviders.has(id)) { throw new TypeError(`${id} is already registered`); }