Fixed typing error, and update memory and window types in index.d.ts.

This commit is contained in:
Louis Bailleau 2020-09-12 23:15:13 +02:00
parent 98d780f338
commit bd2250df90

7
index.d.ts vendored
View file

@ -27,7 +27,7 @@ declare module "minecraft-launcher-core" {
interface ILauncherOptions {
clientPackage?: string;
removePackage?: boolean;
installed?: string;
installer?: string;
root: string;
os?: OS;
customLaunchArgs?: Array<string>;
@ -38,8 +38,8 @@ declare module "minecraft-launcher-core" {
custom?: string;
};
memory: {
max: string;
min: string;
max: string | number;
min: string | number;
};
forge?: string;
javaPath?: string;
@ -57,6 +57,7 @@ declare module "minecraft-launcher-core" {
window?: {
width?: number;
height?: number;
fullscreen?: boolean;
};
overrides?: IOverrides;
authorization: Promise<IUser>;