Skip to content

Commit 7f7c3cb

Browse files
committed
Fix exclusion types
1 parent fc8cd39 commit 7f7c3cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7219,7 +7219,7 @@ export class MatrixClient extends EventEmitter {
72197219
public addPushRule(
72207220
scope: string,
72217221
kind: PushRuleKind,
7222-
ruleId: RuleId | string,
7222+
ruleId: Exclude<string, RuleId>,
72237223
body: any,
72247224
callback?: Callback,
72257225
): Promise<any> { // TODO: Types
@@ -7242,7 +7242,7 @@ export class MatrixClient extends EventEmitter {
72427242
public deletePushRule(
72437243
scope: string,
72447244
kind: PushRuleKind,
7245-
ruleId: RuleId | string,
7245+
ruleId: Exclude<string, RuleId>,
72467246
callback?: Callback,
72477247
): Promise<any> { // TODO: Types
72487248
// NB. Scope not uri encoded because devices need the '/'

0 commit comments

Comments
 (0)