Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

fix: remove type assertions from logger #384

Merged
merged 2 commits into from
Aug 30, 2022
Merged

Conversation

mxdvl
Copy link
Contributor

@mxdvl mxdvl commented Aug 5, 2022

What does this change?

Remove type assertions from logger by creating a getTeamSubscriptions abstraction.

Why?

Checks unkown value at runtime for better type safety.

@mxdvl mxdvl requested a review from a team as a code owner August 5, 2022 08:52
@mxdvl mxdvl force-pushed the mxdvl/logger-no-assertion branch from cfbf341 to 5bbe3e2 Compare August 5, 2022 08:53
@coveralls
Copy link

coveralls commented Aug 5, 2022

Coverage Status

Coverage remained the same at 100.0% when pulling 15a2d02 on mxdvl/logger-no-assertion into 9e613cf on main.

@mxdvl mxdvl force-pushed the mxdvl/logger-no-assertion branch 2 times, most recently from 795bb96 to 2071777 Compare August 5, 2022 09:29
extract common team styles out of team ones
extract `getTeamSubscriptions`, which is type-safe
@mxdvl mxdvl force-pushed the mxdvl/logger-no-assertion branch from 2071777 to 5369e4e Compare August 16, 2022 13:56
@mxdvl mxdvl enabled auto-merge (squash) August 16, 2022 15:56
@mxdvl mxdvl merged commit 32b875d into main Aug 30, 2022
@mxdvl mxdvl deleted the mxdvl/logger-no-assertion branch August 30, 2022 11:02
@github-actions
Copy link

🎉 This PR is included in version 7.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants