Suggestion
Use @throws to mark the corresponding error on the method in the .d.ts file in the lib directory
🔍 Search Terms
@throws jsdoc comments
✅ Viability Checklist
My suggestion meets these guidelines:
⭐ Suggestion
Use @throws to mark the corresponding error on the method in the .d.ts file in the lib directory
📃 Motivating Example
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
+* @throws {SyntaxError} if the string to parse is not valid JSON.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
💻 Use Cases
want to be able to write code when you know that you need to beware of these unpredictable behavior
Suggestion
Use
@throwsto mark the corresponding error on the method in the .d.ts file in the lib directory🔍 Search Terms
@throwsjsdoccomments✅ Viability Checklist
My suggestion meets these guidelines:
⭐ Suggestion
Use
@throwsto mark the corresponding error on the method in the .d.ts file in the lib directory📃 Motivating Example
/** * Converts a JavaScript Object Notation (JSON) string into an object. * @param text A valid JSON string. * @param reviver A function that transforms the results. This function is called for each member of the object. +* @throws {SyntaxError} if the string to parse is not valid JSON. * If a member contains nested objects, the nested objects are transformed before the parent object is. */ parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;💻 Use Cases
want to be able to write code when you know that you need to beware of these unpredictable behavior