I develop a new package and as one functionality, I would need to get the list of all floats defined using the \newfloat command of the float package.
I could of course modify this command in mypackage.sty, but that would need mypackage loaded after float and before the usage of \newfloat, which I don't consider good. I found that there is a float@type counter that says (in a strange way) how many floats have been defined. However, there is no command \float@by@type{<number>}, that would return the name of the corresponding environment.
Any suggestions appreciated.