phpdoc an array structure with autocomplete in vscode

is there any good way to phpdoc an array structure and have vscode autocomplete the keys? i know i can do it with an object and shoe-horn some stdClass shenanigans, but that doesnt help me. the format used by psalm and wordpress don't work as well, as vscode doesn't autocomplete the keys.
1 Reply
ἔρως
ἔρως8mo ago
the closest i have tried is to do something like this:
/**
* @var string $array["key"] Blah blah
*/
/**
* @var string $array["key"] Blah blah
*/
the problem is that you can't use this for function parameters, only variables you create oh, and the autocomplete is kinda garbage and barely usable