The MimeDB ref object is declared as follows in mimetypes.nim:
type
MimeDB* = object
mimes: StringTableRef
RunThe 'mimes' in the object doesn't have an export marker (an asterisk) so it's not visible to your code. There's a separate 'mimes' constant just below it in the same file that is exported so that could probably be used instead, although that wouldn't help you if you register your own types.
