8000 fix: remove duplicate code · adonisjs/validator@03754d1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 03754d1

Browse files
committed
fix: remove duplicate code
1 parent 05a47a2 commit 03754d1

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/schema/index.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -118,28 +118,6 @@ number.nullableAndOptional = function nullableAndOptionalNumber(rules?: Rule[])
118118
>
119119
}
120120

121-
/**
122-
* bigint schema type
123-
*/
124-
function bigint(rules?: Rule[]) {
125-
return getLiteralType('bigint', false, false, undefined, rules || []) as ReturnType<BigIntType>
126-
}
127-
bigint.optional = function optionalBigInt(rules?: Rule[]) {
128-
return getLiteralType('bigint', true, false, undefined, rules || []) as ReturnType<
129-
BigIntType['optional']
130-
>
131-
}
132-
bigint.nullable = function nullableBigInt(rules?: Rule[]) {
133-
return getLiteralType('bigint', false, true, undefined, rules || []) as ReturnType<
134-
BigIntType['nullable']
135-
>
136-
}
137-
bigint.nullableAndOptional = function nullableAndOptionalBigInt(rules?: Rule[]) {
138-
return getLiteralType('bigint', true, true, undefined, rules || []) as ReturnType<
139-
BigIntType['nullableAndOptional']
140-
>
141-
}
142-
143121
/**
144122
* Date schema type
145123
*/
@@ -411,7 +389,6 @@ export const schema: Schema = {
411389
date,
412390
object,
413391
array,
414-
bigint,
415392
enum: oneOf as unknown as EnumType,
416393
enumSet: enumSet as unknown as EnumSetType,
417394
file,

0 commit comments

Comments
 (0)
0