Add launcher methods to index.d.ts

This commit is contained in:
Kev 2021-02-10 15:04:25 +01:00
parent 926060e79c
commit afe4c4d7a4

6
index.d.ts vendored
View file

@ -206,6 +206,12 @@ declare module "minecraft-launcher-core" {
export class Client extends EventEmitter { export class Client extends EventEmitter {
launch(options: ILauncherOptions): ChildProcessWithoutNullStreams | null; launch(options: ILauncherOptions): ChildProcessWithoutNullStreams | null;
protected printVersion(): void;
protected createRootDirectory(): void;
protected createGameDirectory(): void;
protected async extractPackage(): void;
protected async getModifyJson(): any;
protected startMinecraft(launchArguments: string[]): ChildProcessWithoutNullStreams;
} }
export const Authenticator: IAuthenticator; export const Authenticator: IAuthenticator;