Skip to content

Commit 1764b34

Browse files
author
Egor Didenko
committed
types: updated type for param in the setCurrentActivity method
1 parent 53ef11f commit 1764b34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/abstract/UploaderPublicApi.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,10 @@ export class UploaderPublicApi {
352352
setCurrentActivity = <T extends ActivityType>(
353353
activityType: T,
354354
params: T extends keyof ActivityParamsMap
355-
? [ActivityParamsMap[T]]
355+
? ActivityParamsMap[T]
356356
: T extends RegisteredActivityType
357-
? [undefined?]
358-
: [any?],
357+
? undefined
358+
: any,
359359
) => {
360360
if (this._ctx.hasBlockInCtx((b) => b.activityType === activityType)) {
361361
this._ctx.set$({

0 commit comments

Comments
 (0)