Skip to content

Commit

Permalink
SCAL-234039 defined a proper interface for customVariables
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum29 committed Dec 30, 2024
1 parent 4bc3fe8 commit ee4b0d3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,20 @@ export interface EmbedConfig {
* key2: 'value2'
* }
* });
* ```
* @version SDK 1.37 | Thoughtspot: 10.7
*/
customVariablesForThirdPartyTools?: { [key: string]: string | number | boolean };
customVariablesForThirdPartyTools?: EmbedCustomerGuideInterface;
}

type stringBooleanNumber = string | number | boolean;

/**
* This is an object (key/val) for customVariables being
* used by the third party tool's script.
*/
interface EmbedCustomerGuideInterface {
[key: string]: stringBooleanNumber | stringBooleanNumber[] | Record<string, any>;
}

// eslint-disable-next-line @typescript-eslint/no-empty-interface
Expand Down

0 comments on commit ee4b0d3

Please sign in to comment.