You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm trying to convert my TypeScript to JavaScript + JSDoc but can't seem to get around some things. Unfortunately the examples on more advanced JSDoc are pretty scarce, I'm wondering if anyone could help translate the following into JSDoc:
declare global {
namespace jest {
interface Matchers<R> {
toBeWithMessage(result: boolean, message: string): R;
}
}
}
I've so far:
/**
* @namespace jest
*/
/**
* @interface Matchers
* @memberof jest
*/
/**
* @function
* @name Matchers#toBeWithMessage
* @param {boolean} result
* @param {string} message
*/
Hello! I'm trying to convert my TypeScript to JavaScript + JSDoc but can't seem to get around some things. Unfortunately the examples on more advanced JSDoc are pretty scarce, I'm wondering if anyone could help translate the following into JSDoc:
I've so far:
Or is it correct? Unfortunetly TypeScript oes not support @interface or any other advanced features https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html as stated.
The text was updated successfully, but these errors were encountered: