Skip to content

Commit 13985df

Browse files
committed
change subscribe callback type to PluginStyle
1 parent 0b3da6b commit 13985df

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/client/initialize.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
PluginConfig,
44
PluginInstance,
55
PluginMessageResponse,
6+
PluginStyle,
67
WorkbookSelection,
78
WorkbookVariable,
89
} from '../types';
@@ -225,7 +226,7 @@ export function initialize<T = {}>(): PluginInstance<T> {
225226
},
226227

227228
style: {
228-
subscribe(callback: (style: any) => void) {
229+
subscribe(callback: (style: PluginStyle) => void) {
229230
on('wb:plugin:style:update', callback);
230231
return () => off('wb:plugin:style:update', callback);
231232
},

0 commit comments

Comments
 (0)