I am trying to convert the following interface to JSDoc
export interface Payload {
[key: string]: any;
level?: string;
code?: number;
}
so by conversion, it looks like
/**
* @typedef Payload
* @type {Object}
* @property {string} [level]
* @property {number} [code]
*/
But how do I add the option to also add any field there?
How to convert [key: string]: any;
?