refactor: add leading | to error type union

This commit is contained in:
Erica Marigold 2024-11-10 20:37:57 +05:30 committed by GitHub
parent 42634a3b8c
commit 1fde6d2752

View file

@ -72,7 +72,7 @@ export type SemverError = {
}
export type SemverErrorKind = ParseError | {}
export type ParseError =
{ id: "MandatoryComponentMissing", components: { string } }
| { id: "MandatoryComponentMissing", components: { string } }
| {
id: "InvalidComponentType",
component: "major" | "minor" | "patch",