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

chore: enable useUnknownInCatchVariables TypeScript option #494

Merged
merged 6 commits into from
Feb 22, 2024

Conversation

EvanHahn
Copy link
Contributor

This enables the useUnknownInCatchVariables TypeScript option, bringing a little more type safety.

I fixed a few violations, in part by moving isRecord to its own file with tests.

This enables the [useUnknownInCatchVariables] TypeScript option,
bringing a little more type safety.

I fixed a few violations, in part by moving `isRecord` to its own file
with tests.

[useUnknownInCatchVariables]: https://www.typescriptlang.org/tsconfig/#useUnknownInCatchVariables
src/config-import.js Outdated Show resolved Hide resolved
Copy link
Member

@achou11 achou11 left a comment

Choose a reason for hiding this comment

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

nothing blocking but added some thoughts

src/lib/object.js Outdated Show resolved Hide resolved
src/blob-store/live-download.js Outdated Show resolved Hide resolved
src/config-import.js Outdated Show resolved Hide resolved
Copy link
Member

@achou11 achou11 left a comment

Choose a reason for hiding this comment

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

Looks like the isRecord() implementation can be completely removed now

Copy link
Member

@achou11 achou11 left a comment

Choose a reason for hiding this comment

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

my bad, didn't realize isRecord() existed for other parts of the codebase prior to this PR

@EvanHahn
Copy link
Contributor Author

EvanHahn commented Feb 22, 2024

Looks like the isRecord() implementation can be completely removed now

It looks like it's still needed but only by one place now, so I've moved it back in aaf0af5.

@EvanHahn EvanHahn merged commit c402e48 into main Feb 22, 2024
7 checks passed
@EvanHahn EvanHahn deleted the useUnknownInCatchVariables branch February 22, 2024 22:05
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