/** * Returns a boolean whether the passed argument is literal string * @example * ```ts * // true * type Case1 = IsStringLiteral<'a'> * // false * type Case2 = IsStringLiteral * ``` */ export type IsStringLiteral = string extends T ? false : true;