diff --git a/index.d.ts b/index.d.ts index 3353a8e..8a29a75 100644 --- a/index.d.ts +++ b/index.d.ts @@ -205,13 +205,13 @@ declare module "minecraft-launcher-core" { import { ChildProcessWithoutNullStreams } from 'child_process' export class Client extends EventEmitter { - launch(options: ILauncherOptions): ChildProcessWithoutNullStreams | null; + launch(options: ILauncherOptions): Promise; protected printVersion(): void; protected createRootDirectory(): void; protected createGameDirectory(): void; protected async extractPackage(): void; protected async getModifyJson(): any; - protected startMinecraft(launchArguments: string[]): ChildProcessWithoutNullStreams; + protected startMinecraft(launchArguments: string[]): Promise; } export const Authenticator: IAuthenticator;