diff --git a/src/index.ts b/src/index.ts index 042c0fe..51f3290 100644 --- a/src/index.ts +++ b/src/index.ts @@ -130,7 +130,7 @@ const app = http.createServer(async (req, res) => { sendFile(filePath); }); -export type instace = { +export type instance = { name: string; description?: string; descriptionLong?: string; @@ -157,7 +157,7 @@ export type instace = { }; const instances = JSON.parse( readFileSync(process.env.JANK_INSTANCES_PATH || __dirname + "/webpage/instances.json").toString(), -) as instace[]; +) as instance[]; const instanceNames = new Map(); diff --git a/src/utils.ts b/src/utils.ts index 4ef2566..1c7f543 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,4 +1,4 @@ -import {instace} from "./index.js"; +import {instance} from "./index.js"; interface ApiUrls { api: string; @@ -9,7 +9,7 @@ interface ApiUrls { export async function getApiUrls( url: string, - instances: instace[], + instances: instance[], check = true, ): Promise { if (!url.endsWith("/")) { diff --git a/src/webpage/settings.ts b/src/webpage/settings.ts index 74fc7b4..ff8d00a 100644 --- a/src/webpage/settings.ts +++ b/src/webpage/settings.ts @@ -1142,10 +1142,10 @@ class Options implements OptionsElement { onchange?: InstancePicker["onchange"], {button, instance}: {button?: HTMLButtonElement; instance?: string} = {}, ) { - const instacePicker = new InstancePicker(this, onchange, button, instance); - this.options.push(instacePicker); - this.generate(instacePicker); - return instacePicker; + const instancePicker = new InstancePicker(this, onchange, button, instance); + this.options.push(instancePicker); + this.generate(instancePicker); + return instancePicker; } returnFromSub() { this.subOptions = undefined;