typescript-rest icon indicating copy to clipboard operation
typescript-rest copied to clipboard

HttpError is not exported by typescript-rest module.

Open msieurtoph opened this issue 6 years ago • 1 comments

Hi,

Using the brand new 2.0.0 release, the abstract class HttpError seems not to be exported by default. I have to implement :

import { Errors } from 'typescript-rest';

export CustomError extended Errors.HttpError

to access this class.

This should be documented maybe ... I can submit a merge request if you want. If I got time to ;)

msieurtoph avatar Mar 20 '19 15:03 msieurtoph

I also ran into this -- thanks for the solution!

katiescruggs avatar Apr 29 '19 17:04 katiescruggs