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