Showing 18 of 33 total issues
Similar blocks of code found in 2 locations. Consider refactoring. Open
export function isNumberIntegerPositive<N extends number>(value: N): value is NonNegative<Integer<N>> { return SCHEMA_NUMBER_INTEGER_POSITIVE.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
export function isNumberIntegerNegative<N extends number>(value: N): value is Negative<Integer<N>> { return SCHEMA_NUMBER_INTEGER_NEGATIVE.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
export function validateNumberIntegerPositive<N extends number>(value: N): asserts value is NonNegative<Integer<N>> { SCHEMA_NUMBER_INTEGER_POSITIVE.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 2 locations. Consider refactoring. Open
export function validateNumberIntegerNegative<N extends number>(value: N): asserts value is Negative<Integer<N>> { SCHEMA_NUMBER_INTEGER_NEGATIVE.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function isNumberNonPositive<N extends number>(value: N): value is Negative<N> { return SCHEMA_NUMBER_NON_POSITIVE.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function isNumberInteger<N extends number>(value: N): value is Integer<N> { return SCHEMA_NUMBER_INTEGER.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function isNumberFinite<N extends number>(value: N): value is Finite<N> { return SCHEMA_NUMBER_FINITE.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function isNumberNegative<N extends number>(value: N): value is Negative<N> { return SCHEMA_NUMBER_NEGATIVE.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function isNumberNonNegative<N extends number>(value: N): value is NonNegative<N> { return SCHEMA_NUMBER_NON_NEGATIVE.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function isNumberFloat<N extends number>(value: N): value is Float<N> { return SCHEMA_NUMBER_FLOAT.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function isNumberPositive<N extends number>(value: N): value is NonNegative<N> { return SCHEMA_NUMBER_POSITIVE.safeParse(value).success;}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function validatNumberNegative<N extends number>(value: N): asserts value is Negative<N> { SCHEMA_NUMBER_NEGATIVE.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function validateNumberFinite<N extends number>(value: N): asserts value is Finite<N> { SCHEMA_NUMBER_FINITE.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function validateNumberNonNegative<N extends number>(value: N): asserts value is NonNegative<N> { SCHEMA_NUMBER_NON_NEGATIVE.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function validateNumberNonPositive<N extends number>(value: N): asserts value is Negative<N> { SCHEMA_NUMBER_NON_POSITIVE.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function validateNumberFloat<N extends number>(value: N): asserts value is Float<N> { SCHEMA_NUMBER_FLOAT.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function validateNumberPositive<N extends number>(value: N): asserts value is NonNegative<N> { SCHEMA_NUMBER_POSITIVE.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket
Similar blocks of code found in 7 locations. Consider refactoring. Open
export function validateNumberInteger<N extends number>(value: N): asserts value is Integer<N> { SCHEMA_NUMBER_INTEGER.parse(value);}
- Read upRead up
- Create a ticketCreate a ticket