Test if a type is a StringLiteralType.
StringLiteralType
declare const type: ts.Type;if (isStringLiteralType(type)) { // ...} Copy
declare const type: ts.Type;if (isStringLiteralType(type)) { // ...}
Test if a type is a
StringLiteralType
.