Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
__parseTypeValue (type, value) {
if (type === 'month') {
return normalizeToInterval(value, 1, 12)
}
if (type === 'date') {
return normalizeToInterval(value, 1, this.daysInMonth)
}
if (type === 'year') {
return normalizeToInterval(value, this.yearInterval.min, this.yearInterval.max)
}
if (type === 'hour') {
return normalizeToInterval(value, 0, 23)
}
if (type === 'minute') {
return normalizeToInterval(value, 0, 59)
}
}
}
__parseTypeValue (type, value) {
if (type === 'month') {
return normalizeToInterval(value, 1, 12)
}
if (type === 'date') {
return normalizeToInterval(value, 1, this.daysInMonth)
}
if (type === 'year') {
return normalizeToInterval(value, this.yearInterval.min, this.yearInterval.max)
}
if (type === 'hour') {
return normalizeToInterval(value, 0, 23)
}
if (type === 'minute') {
return normalizeToInterval(value, 0, 59)
}
}
}
__parseTypeValue (type, value) {
if (type === 'month') {
return normalizeToInterval(value, 1, 12)
}
if (type === 'date') {
return normalizeToInterval(value, 1, this.daysInMonth)
}
if (type === 'year') {
return normalizeToInterval(value, this.yearInterval.min, this.yearInterval.max)
}
if (type === 'hour') {
return normalizeToInterval(value, 0, 23)
}
if (type === 'minute') {
return normalizeToInterval(value, 0, 59)
}
}
}
__parseTypeValue (type, value) {
if (type === 'month') {
return normalizeToInterval(value, 1, 12)
}
if (type === 'date') {
return normalizeToInterval(value, 1, this.daysInMonth)
}
if (type === 'year') {
return normalizeToInterval(value, this.yearInterval.min, this.yearInterval.max)
}
if (type === 'hour') {
return normalizeToInterval(value, 0, 23)
}
if (type === 'minute') {
return normalizeToInterval(value, 0, 59)
}
}
}
__parseTypeValue (type, value) {
if (type === 'month') {
return normalizeToInterval(value, 1, 12)
}
if (type === 'date') {
return normalizeToInterval(value, 1, this.daysInMonth)
}
if (type === 'year') {
return normalizeToInterval(value, this.yearInterval.min, this.yearInterval.max)
}
if (type === 'hour') {
return normalizeToInterval(value, 0, 23)
}
if (type === 'minute') {
return normalizeToInterval(value, 0, 59)
}
}
}