function
Source: sanitization.ts ↗
insightSanitize()
Makes sure the insight does not have any nonsensical data (like totals that no longer make sense, etc.), before it is saved.
export declare function insightSanitize<T extends IInsightDefinition>(insight: T): T;
Parameters
Parameter | Type | Description |
|---|---|---|
insight | T | the insight or insight definition to sanitize |
Returns
T