8000 style: lint files · adonisjs/validator@1017157 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 1017157

Browse files
committed
style: lint files
1 parent 4f7333f commit 1017157

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

src/messages_bag/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class MessagesBag implements MessagesBagContract {
6262
return validationMessage
6363
? this.transform(validationMessage as string, rule, pointer, args)
6464
: this.wildCardCallback
65-
? this.wildCardCallback(pointer, rule, arrayExpressionPointer, args)
66-
: message
65+
? this.wildCardCallback(pointer, rule, arrayExpressionPointer, args)
66+
: message
6767
}
6868
}

src/types.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -502,26 +502,26 @@ export type AllowedEnumOptions = SchemaRef<unknown> | readonly unknown[]
502502
/**
503503
* Conditionally finds the return value for the Enum options
504504
*/
505-
export type EnumReturnValue<Options extends AllowedEnumOptions> = Options extends SchemaRef<infer R>
506-
? R extends readonly unknown[]
507-
? R[number]
508-
: unknown
509-
: Options extends readonly unknown[]
510-
? Options[number]
511-
: never
505+
export type EnumReturnValue<Options extends AllowedEnumOptions> =
506+
Options extends SchemaRef<infer R>
507+
? R extends readonly unknown[]
508+
? R[number]
509+
: unknown
510+
: Options extends readonly unknown[]
511+
? Options[number]
512+
: never
512513

513514
/**
514515
* Conditionally finds the return value for the EnumSet options
515516
*/
516-
export type EnumSetReturnValue<Options extends AllowedEnumOptions> = Options extends SchemaRef<
517-
infer R
518-
>
519-
? R extends readonly unknown[]
520-
? R[number][]
521-
: unknown
522-
: Options extends readonly unknown[]
523-
? Options[number][]
524-
: never
517+
export type EnumSetReturnValue<Options extends AllowedEnumOptions> =
518+
Options extends SchemaRef<infer R>
519+
? R extends readonly unknown[]
520+
? R[number][]
521+
: unknown
522+
: Options extends readonly unknown[]
523+
? Options[number][]
524+
: never
525525

526526
/**
527527
* Signature to define an enum type. We accept a static list of enum

tests/validations/after.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ function compile(
3232
typeof interval === 'number'
3333
? rules.after(interval, duration!)
3434
: typeof interval === 'string'
35-
? rules.after(interval)
36-
: rules.after(interval)
35+
? rules.after(interval)
36+
: rules.after(interval)
3737

3838
return after.compile('literal', 'date', options)
3939
}

tests/validations/after_or_equal.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ function compile(
3232
typeof interval === 'number'
3333
? rules.afterOrEqual(interval, duration!)
3434
: typeof interval === 'string'
35-
? rules.afterOrEqual(interval)
36-
: rules.afterOrEqual(interval)
35+
? rules.afterOrEqual(interval)
36+
: rules.afterOrEqual(interval)
3737

3838
return validations.afterOrEqual.compile('literal', 'date', options)
3939
}

tests/validations/before.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ function compile(
3232
typeof interval === 'number'
3333
? rules.before(interval, duration!)
3434
: typeof interval === 'string'
35-
? rules.before(interval)
36-
: rules.before(interval)
35+
? rules.before(interval)
36+
: rules.before(interval)
3737

3838
return before.compile('literal', 'date', options, {})
3939
}

tests/validations/before_or_equal.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ function compile(
3232
typeof interval === 'number'
3333
? rules.beforeOrEqual(interval, duration!)
3434
: typeof interval === 'string'
35-
? rules.beforeOrEqual(interval)
36-
: rules.beforeOrEqual(interval)
35+
? rules.beforeOrEqual(interval)
36+
: rules.beforeOrEqual(interval)
3737

3838
return beforeOrEqual.compile('literal', 'date', options, {})
3939
}

0 commit comments

Comments
 (0)
0