@nx/js
Version:
10 lines (9 loc) • 348 B
TypeScript
/**
* Determines if a given string is a valid JavaScript variable name.
* @param name name of the variable to be checked
* @returns result object with a boolean indicating if the name is valid and a message explaining why it is not valid
*/
export declare function isValidVariable(name: string): {
isValid: boolean;
message: string;
};