@team-supercharge/nest-amqp
Version:
AMQP 1.0 module for Nest framework
9 lines (8 loc) • 304 B
TypeScript
/**
* Try to parse a string value into an object. If the parsing fails then `false`
* value will be returned.
*
* @param {string} jsonString Object as string.
* @return {(T|undefined)} Parsed object or undefined.
*/
export declare function tryParseJSON<T = any>(jsonString: string): T | undefined;