Skip to content

Commit

Permalink
fix FormatCompare type
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Oct 24, 2020
1 parent 762d4b5 commit 7e1cfa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export interface KeywordCxtParams {

export type FormatValidator<T extends string | number> = (data: T) => boolean

export type FormatCompare<T extends string | number> = (data1: T, data2: T) => boolean
export type FormatCompare<T extends string | number> = (data1: T, data2: T) => number | undefined

export type AsyncFormatValidator<T extends string | number> = (data: T) => Promise<boolean>

Expand Down

0 comments on commit 7e1cfa8

Please # to comment.