Skip to content

Commit

Permalink
refactor(typescript)!: IsSemVerOptionsConfigCMP -> `IsSemVerOptions…
Browse files Browse the repository at this point in the history
…CMP`

P010-39
  • Loading branch information
unicornware committed Sep 19, 2021
1 parent b420f94 commit a99d89d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/grease/src/constraints/is-sem-ver.constraint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
GitSemverTagsOptions,
IConstraint,
IsSemVerOptionsClean as CleanConfig,
IsSemVerOptionsConfigCMP as CMPConfig,
IsSemVerOptionsCMP as CMPConfig,
IsSemVerOptionsConfigSatisfies as SatisfiesConfig,
ValidatorConstraintOptions
} from '@grease/types'
Expand Down
2 changes: 1 addition & 1 deletion packages/grease/src/decorators/is-sem-ver.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { IsSemVerOptions } from '@grease/interfaces'
import type {
GitSemverTagsOptions,
IsSemVerOptionsClean as CleanConfig,
IsSemVerOptionsConfigCMP as CMPConfig,
IsSemVerOptionsCMP as CMPConfig,
IsSemVerOptionsConfigSatisfies as SatisfiesConfig,
ValidationMessage
} from '@grease/types'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {
GitSemverTagsOptions,
IsSemVerOptionsClean,
IsSemVerOptionsConfigCMP,
IsSemVerOptionsCMP,
IsSemVerOptionsConfigSatisfies
} from '@grease/types'
import type { ValidationOptions } from 'class-validator'
Expand All @@ -26,7 +26,7 @@ export interface IsSemVerOptions extends ValidationOptions {
/**
* Compare $value to another semantic version.
*/
cmp?: IsSemVerOptionsConfigCMP | []
cmp?: IsSemVerOptionsCMP | []

/**
* Coerce $value to a semantic version if possible.
Expand Down
2 changes: 1 addition & 1 deletion packages/grease/src/types/semver.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type IsSemVerOptionsClean = [string] | [string, SemVerOptions] | []
/**
* `IsSemVerOptions.cmp` configuration.
*/
export type IsSemVerOptionsConfigCMP =
export type IsSemVerOptionsCMP =
| [SemVerOperator, SemanticVersion]
| [SemVerOperator, SemanticVersion, SemVerOptions | boolean | undefined]

Expand Down

0 comments on commit a99d89d

Please sign in to comment.