/** * @copyright NHCarrigan * @license Naomi's Public License * @author Naomi Carrigan */ /** * Checks that a nullable value is a string and has length. * @param maybeString -- The nullable value to check. * @returns True if it is a string. */ export const isValidString = (maybeString: unknown): maybeString is string => { return typeof maybeString === "string" && maybeString.length > 0; };