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