Skip to content

Commit f5ec64b

Browse files
Create overload signatures for Space.prototype.updateProfileData
Motivation as 97f5ac2.
1 parent c7c735a commit f5ec64b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Space.ts

+2
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ class Space extends EventEmitter<SpaceEventMap> {
137137
});
138138
}
139139

140+
async updateProfileData(profileData: ProfileData): Promise<void>;
141+
async updateProfileData(updateFn: (update: ProfileData) => ProfileData): Promise<void>;
140142
async updateProfileData(profileDataOrUpdateFn: ProfileData | ((update: ProfileData) => ProfileData)): Promise<void> {
141143
const self = await this.members.getSelf();
142144

0 commit comments

Comments
 (0)