Skip to content

Commit 4b8864d

Browse files
fix: move reply code at the end of reply interface
1 parent 7b74785 commit 4b8864d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ async function generateReplyInterfaces(prefix: string, replies = {}) {
1010
const generatedInterfaces = [];
1111
const generatedReplyNames = [];
1212
for (const [replyCode, replySchema] of Object.entries<any>(replies)) {
13-
generatedReplyNames.push(prefix + replyCode + "Reply");
13+
generatedReplyNames.push(prefix + "Reply" + replyCode);
1414
generatedInterfaces.push(
1515
await compile(
1616
replySchema || defaultSchema,
17-
prefix + replyCode + "Reply",
17+
prefix + "Reply" + replyCode,
1818
opts
1919
)
2020
);

0 commit comments

Comments
 (0)