Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project to use Typescript #2

Merged
merged 3 commits into from
Jul 18, 2022
Merged

Update project to use Typescript #2

merged 3 commits into from
Jul 18, 2022

Conversation

denwilliams
Copy link
Contributor

@denwilliams denwilliams commented Jul 14, 2022

Update the project to Typescript.

Also updates dependencies which should resolve Github security notifications.

Supports type checking for required meta, which should help in enforcing the required params for constructing errors.

@denwilliams denwilliams self-assigned this Jul 14, 2022
Add multi-line text here.`;
}
}
const ErrorA = createErrorType({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't support the extends approach any more

src/index.test.ts Outdated Show resolved Hide resolved
@denwilliams denwilliams force-pushed the feature/typescript branch 2 times, most recently from 9450d7a to 2d7c787 Compare July 14, 2022 05:41
@denwilliams denwilliams marked this pull request as ready for review July 14, 2022 06:37
package.json Outdated
@@ -17,10 +19,14 @@
},
"homepage": "https://github.com/LOKE/errors#readme",
"dependencies": {
"logfmt": "^1.3.2",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not super keen on adding this dep for such a low level lib

@denwilliams denwilliams merged commit ce80278 into master Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants