Skip to content

Conversation

@jablko
Copy link
Contributor

@jablko jablko commented Apr 21, 2022

Adds some static checks: `${major}.${minor}` is assignable to `${number}.${number}` whereas '1' and other strings aren't.

if (version) {
return [version, key];
}
throw new Error(`Unable to parse version ${key}`);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unreachable because Semver.parse() isn't nullable.

@andrewbranch
Copy link
Member

Do you need to merge this before #436?

@andrewbranch andrewbranch merged commit ee38cc9 into microsoft:master Apr 21, 2022
@jablko
Copy link
Contributor Author

jablko commented Apr 21, 2022

Do you need to merge this before #436?

Thanks! It made sense to merge this one first. 👍

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