Skip to content

Commit 8876251

Browse files
committed
records
1 parent fd83a2a commit 8876251

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libxtracfg/js/types/generate-java-classes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { generateClass, generateJava } from "./java/index.ts";
66
const dataNs = ["Command", "Options", "Result"];
77
const suffixNs = ["Command", "Options"];
88
const commandNs = "Command";
9-
const baseOptions = "BaseOptions";
109
const baseResult = "BaseResult";
1110
const failureResult = "FailureResult";
1211

@@ -130,7 +129,7 @@ public abstract class Handler<T extends Handler.Context, U extends Handler.Conte
130129
return notConnected();
131130
}
132131
133-
${result} result = handle(new ${initCommand}((${baseOptions})command.options()), false, ignore -> {});
132+
${result} result = handle(new ${initCommand}(command.options()), false, ignore -> {});
134133
135134
if (result instanceof ${failure}) {
136135
return result;

libxtracfg/js/types/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ export namespace Command {
8282
*/
8383
export class Connect extends Base {
8484
declare readonly command: Enums.Main.Connect;
85-
declare readonly options: Options.Base;
85+
declare readonly options: Options.Options;
8686

87-
constructor(options: Options.Base = {}) {
87+
constructor(options: Options.Options = {}) {
8888
super(Enums.Main.Connect, options);
8989
}
9090
}

0 commit comments

Comments
 (0)