ryuu.js
Version:
Ryuu JavaScript Utility Library
22 lines (21 loc) • 772 B
TypeScript
import { Variable } from "../models/interfaces/variable";
/**
* Type guard to check if an object is a valid Variable.
*
* @param obj - The object to check
* @returns True if the object is a valid Variable, false otherwise
*/
export declare function isVariable(obj: any): obj is Variable;
/**
* Type guard to check if an array contains valid Variables.
*
* @param arr - The array to check
* @returns True if the array contains only valid Variables, false otherwise
*/
export declare function isVariableArray(arr: any): arr is Variable[];
/**
* Guards against invalid variables being sent to Domo.
*
* @param variables string | Variable[] The variables to evaluate
*/
export declare function guardAgainstInvalidVariables(variables: string | Variable[]): void;