Skip to content

Commit 8630a84

Browse files
committed
fix(qa): type Matrix account reset state
Punchcard-Session: amber-workshop-workshop-36
1 parent eea5655 commit 8630a84

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • extensions/qa-lab/src/live-transports/matrix/substrate

‎extensions/qa-lab/src/live-transports/matrix/substrate/config.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,11 @@ type MatrixQaGroupSnapshot = {
146146
};
147147

148148
type MatrixQaGroupEntry = Omit<MatrixQaGroupSnapshot, "roomId">;
149-
type MatrixQaChannelConfig = NonNullable<OpenClawConfig["channels"]>["matrix"];
150-
type MatrixQaChannelAccountConfig = NonNullable<
151-
NonNullable<MatrixQaChannelConfig>["accounts"]
152-
>[string];
149+
type MatrixQaChannelAccountConfig = Record<string, unknown> & {
150+
groups?: Record<string, MatrixQaGroupEntry & Record<string, unknown>>;
151+
network?: Record<string, unknown>;
152+
streaming?: Record<string, unknown>;
153+
};
153154

154155
function restoreOwnedFields(
155156
current: unknown,

0 commit comments

Comments
 (0)