This adds the TypeScript definition file. Since users can't use @types/verror for this package and if the API diverges at all, figured it would be good to have a TypeScript definition file. The definition file is largely copied from @types/verror with the addition of the PError.
This PR also adds tests to ensure those assertions are correct. I followed a similar pattern that is used in other open source JS libraries.
This adds the TypeScript definition file. Since users can't use
@types/verror
for this package and if the API diverges at all, figured it would be good to have a TypeScript definition file. The definition file is largely copied from@types/verror
with the addition of the PError.This PR also adds tests to ensure those assertions are correct. I followed a similar pattern that is used in other open source JS libraries.