Hello,
The type value to be used depends on how the styles are being applied. For example, if the styles are applied as w:rPr to a w:r tag (run content), then you need to set run as type.
We recommend you to check the samples included in the package: samples/DocxPath/getWordStyles.
Regards.