Skip to content

Commit 7b229da

Browse files
committed
Fix type to be compatible with result of MatrixClienbtPeg.get()
1 parent 806768b commit 7b229da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extensions/UserSearchExtensions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,14 @@ export interface MatrixClientProjection {
9292
* Public api surface used to consume the extension in client code
9393
*/
9494
export interface ProvideUserSearchExtensions {
95-
getSearchContext(client: MatrixClientProjection, sdkContext: SdkContextClassProjection): Promise<SearchContext>;
95+
getSearchContext(client: MatrixClientProjection | null, sdkContext: SdkContextClassProjection): Promise<SearchContext>;
9696
}
9797

9898
/**
9999
* Abstract base class which concrete extension implementations will extend/derive from
100100
*/
101101
export abstract class UserSearchExtensionsBase implements ProvideUserSearchExtensions {
102-
public abstract getSearchContext(client: any, sdkContextClass: SdkContextClassProjection): Promise<SearchContext>;
102+
public abstract getSearchContext(client: MatrixClientProjection | null, sdkContextClass: SdkContextClassProjection): Promise<SearchContext>;
103103
}
104104

105105
/**
@@ -118,7 +118,7 @@ export interface SearchContext {
118118
*
119119
* */
120120
export class DefaultUserSearchExtensions extends UserSearchExtensionsBase {
121-
public async getSearchContext(client: any, sdkContext: SdkContextClassProjection): Promise<SearchContext> {
121+
public async getSearchContext(client: MatrixClientProjection | null, sdkContext: SdkContextClassProjection): Promise<SearchContext> {
122122
console.log("Default resolveSearchContext()");
123123
return {
124124
extraBodyArgs: {},

0 commit comments

Comments
 (0)