Type alias IsValidVariableName<T, First>

IsValidVariableName<T, First>: T extends `${infer A}${infer B}` ? First extends true ? A extends AlphabetLiteral ? IsValidVariableName<B, false> : false : A extends AlphabetLiteral | NumberLiteral | SymbolLiteral ? IsValidVariableName<B, false> : false : true

Type Parameters

  • T extends string

  • First = true

Generated using TypeDoc