Skip to content

Commit 08cd832

Browse files
fix: fixes the type for workbook:variables:onchange (#73)
1 parent 771dea8 commit 08cd832

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/odd-hotels-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sigmacomputing/embed-sdk": minor
3+
---
4+
5+
fix: fixes the variable on change type

packages/embed-sdk/src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ export interface WorkbookErrorEvent {
109109

110110
export interface WorkbookVariableOnChangeEvent {
111111
type: typeof WorkbookVariableEventOnChangeName;
112-
variables: Record<string, string>;
112+
workbook: {
113+
variables: Record<string, string>;
114+
};
113115
}
114116

115117
export interface WorkbookVariableCurrentEvent {

0 commit comments

Comments
 (0)