fucked up and only committed on half... here is the other one

This commit is contained in:
WolverinDEV 2020-09-17 23:49:05 +02:00
parent 7db0d9f492
commit 4185e8b549

View file

@ -4,10 +4,10 @@ import * as loader from "tc-loader";
import {Stage} from "tc-loader";
import {Registry} from "./events";
type ConfigValueTypes = boolean | number | string | object;
type ConfigValueTypeNames = "boolean" | "number" | "string" | "object";
export type ConfigValueTypes = boolean | number | string | object;
export type ConfigValueTypeNames = "boolean" | "number" | "string" | "object";
type ValueTypeMapping<T> = T extends boolean ? "boolean" :
export type ValueTypeMapping<T> = T extends boolean ? "boolean" :
T extends number ? "number" :
T extends string ? "string" :
T extends object ? "object" : never;