Skip to content

Commit 05fdc9e

Browse files
fix: update return type of subscribe method in SharedValuesManager to a function
1 parent 307f493 commit 05fdc9e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SharedValuesManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export class SharedValuesApi<T extends SharedValue, V, R = T> {
283283
return all;
284284
}
285285

286-
subscribe<S extends string = string>(sharedCreated: SharedCreated, listener: AFunction): void;
286+
subscribe<S extends string = string>(sharedCreated: SharedCreated, listener: AFunction): () => void;
287287
subscribe<S extends string = string>(key: S | SharedCreated, listener: AFunction, scopeName?: Prefix) {
288288
let keyStr!: string;
289289
let prefixStr!: string;

0 commit comments

Comments
 (0)