thiagobustamante / typescript-rest

This is a lightweight annotation-based expressjs extension for typescript.
MIT License
523 stars 110 forks source link

HttpError is not exported by typescript-rest module. #87

Open msieurtoph opened 5 years ago

msieurtoph commented 5 years ago

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 ;)

katiescruggs commented 5 years ago

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