typo fix: instace -> instance

This commit is contained in:
[it/its]@Rory&
2025-12-31 19:14:07 -06:00
committed by MathMan05
parent a00435c9f6
commit ae81c4ed55
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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<string, Instance>();
+2 -2
View File
@@ -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<ApiUrls | null> {
if (!url.endsWith("/")) {
+4 -4
View File
@@ -1142,10 +1142,10 @@ class Options implements OptionsElement<void> {
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;