UNPKG

@team-supercharge/nest-amqp

Version:
9 lines (8 loc) 304 B
/** * 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;