Closed sondr3 closed 5 months ago
Sorry, I'm not sure how to fix it.
Maybe other contributors have some ideas?
I don't have any ideas either. We already export the option type, there is no reason that TypeScript can't find it:
https://github.com/posthtml/htmlnano/blob/151da26bf6b1e82e380ace889bcf8da6e34f7976/index.d.ts#L6
A PR will be welcome!
This is obviously not a problem on your end but I've been unable to figure out how to fix it for myself. I'm writing a CLI tool using
"module": "NodeNext"
and"moduleResolution": "NodeNext"
and it can't find typings for anything. I get the following error when type checkingand all fields exported from
htmlnano
are marked withany
. I tried to figure out the magic incantation of which files to export where but couldn't make any headway. Any ideas for how to fix this?