Skip to content

Commit

Permalink
records
Browse files Browse the repository at this point in the history
  • Loading branch information
azahnen committed Jan 2, 2025
1 parent fd83a2a commit 8876251
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions libxtracfg/js/types/generate-java-classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { generateClass, generateJava } from "./java/index.ts";
const dataNs = ["Command", "Options", "Result"];
const suffixNs = ["Command", "Options"];
const commandNs = "Command";
const baseOptions = "BaseOptions";
const baseResult = "BaseResult";
const failureResult = "FailureResult";

Expand Down Expand Up @@ -130,7 +129,7 @@ public abstract class Handler<T extends Handler.Context, U extends Handler.Conte
return notConnected();
}
${result} result = handle(new ${initCommand}((${baseOptions})command.options()), false, ignore -> {});
${result} result = handle(new ${initCommand}(command.options()), false, ignore -> {});
if (result instanceof ${failure}) {
return result;
Expand Down
4 changes: 2 additions & 2 deletions libxtracfg/js/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ export namespace Command {
*/
export class Connect extends Base {
declare readonly command: Enums.Main.Connect;
declare readonly options: Options.Base;
declare readonly options: Options.Options;

constructor(options: Options.Base = {}) {
constructor(options: Options.Options = {}) {
super(Enums.Main.Connect, options);
}
}
Expand Down

0 comments on commit 8876251

Please sign in to comment.