Closed
Description
It seems the typescript declaration of TypeGuardError is missing the actual constructor.
When I do throw new TypeGuardError(errorObject, inputObject)
, typescript pickups the constructor of Error object and allows only one message argument. But the definition requires errorObject
and inputObject
Definition https://github.com/woutervh-/typescript-is/blob/master/index.js#L34
Declaration https://github.com/woutervh-/typescript-is/blob/master/index.d.ts#L167
Metadata
Metadata
Assignees
Labels
No labels