Skip to content

Commit 6f5d793

Browse files
updated type for on callback param
1 parent abb0594 commit 6f5d793

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ffc-wechat-miniprogram-sdk",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"description": "https://github.com/feature-flags-co/ffc-wechat-miniprogram-sdk",
55
"main": "build/index.js",
66
"miniprogram": "build",

src/ffc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export class Ffc {
108108
});
109109
}
110110

111-
on(name: string, cb: (change: IFeatureFlagChange) => void) {
111+
on(name: string, cb: (changes: IFeatureFlagChange | IFeatureFlagChange[]) => void) {
112112
eventHub.subscribe(name, cb);
113113
}
114114

0 commit comments

Comments
 (0)