change TypedError interface to use opts object
2.0.0
2.0.1