How can I document the property of an object in JSDoc / VSCode when it contains a period?
For example:
/**
* @type {PersonObject}
*/
let personObject = {
"first.last": "John Doe", // optional
"age": 31
}
/**
* @typedef {Object} PersonObject
* @property {String} [first.last]
* @property {Number} age
*/
{ "message": "Type '{\"first.last\": string; age: number; }' is not assignable to type 'PersonObject'.\n Object literal may only specify known properties, and '\"first.last\"' does not exist in type 'PersonObject'.", "source": "ts", }