/**
* @typedef {string} UUID
* */
/**
* @typedef {Object} ITEM
* @property {UUID} id
* */
/**
* @typedef {Object} THINGY
* @property {??????}
* */
const oneThingy = {
asdf: {id: 'asdf', ...},
sdfg: {id: 'sdfg', ...},
dfgh: {id: 'dfgh', ...}
}
Assuming that a THINGY can have infinite k:v pairs, and that the keys will be random UUIDs, how would I document and type the @property?
Thanks to a kind person named Kyriakos on the JSDoc Slack channel, TIL it's not the
@property, I just need the properly-formatted@typedef: