generated from nhcarrigan/template
feat: add ability to log and display sanctions
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* @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;
|
||||
};
|
||||
Reference in New Issue
Block a user