@dice-roller/rpg-dice-roller
Version:
An advanced JS based dice roller that can roll various types of dice and modifiers, along with mathematical equations.
17 lines (16 loc) • 431 B
TypeScript
/**
* Check if the value is a valid base64 encoded string.
*
* @param {string} val
*
* @returns {boolean} `true` if it is valid base64 encoded, `false` otherwise
*/
export function isBase64(val: string): boolean;
/**
* Check if the value is a valid JSON encoded string.
*
* @param {string} val
*
* @returns {boolean} `true` if the value is valid JSON, `false` otherwise
*/
export function isJson(val: string): boolean;