I'm encountering an issue with reducing redundancy when defining my imported types. I am trying to streamline the process, but unfortunately I am running into errors.
/**
@typedef {import("../types/util")} util
@typedef {util.mapBehaviors} mapBehaviors
... numerous other typedefs that are reliant on util
*/
'util' is designated as a type, yet it is being utilized as a namespace in this context.
Interestingly, explicitly expanding the import resolves the problem:
/**
@typedef {import("../types/util").mapBehaviors} mapBehaviors
... continue defining additional typedefs
*/
Is there a way to employ @typedef
with an alias related to an import?