Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
JLyne committed Jul 9, 2023
1 parent eb4f57a commit aa30b28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/util/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ import MapProvider from "@/providers/MapProvider";
import DynmapMapProvider from "@/providers/DynmapMapProvider";

const expectedConfigVersion = 1,
registeredProviders: Map<string, new (config: any) => MapProvider> = new Map(),
registeredProviders: Map<string, new (name: string, config: any) => MapProvider> = new Map(),
serverProviders: Map<string, MapProvider> = 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`);
}
Expand Down

0 comments on commit aa30b28

Please sign in to comment.