File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,14 @@ export interface MatrixClientProjection {
92
92
* Public api surface used to consume the extension in client code
93
93
*/
94
94
export interface ProvideUserSearchExtensions {
95
- getSearchContext ( client : MatrixClientProjection , sdkContext : SdkContextClassProjection ) : Promise < SearchContext > ;
95
+ getSearchContext ( client : MatrixClientProjection | null , sdkContext : SdkContextClassProjection ) : Promise < SearchContext > ;
96
96
}
97
97
98
98
/**
99
99
* Abstract base class which concrete extension implementations will extend/derive from
100
100
*/
101
101
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 > ;
103
103
}
104
104
105
105
/**
@@ -118,7 +118,7 @@ export interface SearchContext {
118
118
*
119
119
* */
120
120
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 > {
122
122
console . log ( "Default resolveSearchContext()" ) ;
123
123
return {
124
124
extraBodyArgs : { } ,
You can’t perform that action at this time.
0 commit comments