@trackunit/shared-utils
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -231,12 +231,2 @@ 'use strict'; | ||
}; | ||
/** | ||
* Converts a string value to lowercase while preserving the original type. | ||
* | ||
* @param value - The string value to convert to lowercase. | ||
* @returns {Lowercase<string> } The lowercase value with the same type as the input value. | ||
*/ | ||
const typeSafeToLowercase = (value) => { | ||
// eslint-disable-next-line local-rules/no-typescript-assertion | ||
return value.toLowerCase(); | ||
}; | ||
@@ -1044,3 +1034,2 @@ /** toggle whether a value is in an array or not */ | ||
exports.truthy = truthy; | ||
exports.typeSafeToLowercase = typeSafeToLowercase; | ||
exports.unionArraysByKey = unionArraysByKey; |
@@ -227,12 +227,2 @@ var HoursAndMinutesFormat; | ||
}; | ||
/** | ||
* Converts a string value to lowercase while preserving the original type. | ||
* | ||
* @param value - The string value to convert to lowercase. | ||
* @returns {Lowercase<string> } The lowercase value with the same type as the input value. | ||
*/ | ||
const typeSafeToLowercase = (value) => { | ||
// eslint-disable-next-line local-rules/no-typescript-assertion | ||
return value.toLowerCase(); | ||
}; | ||
@@ -985,2 +975,2 @@ /** toggle whether a value is in an array or not */ | ||
export { DateTimeFormat, HoursAndMinutesFormat, align, arrayLengthCompare, arrayNotEmpty, booleanCompare, capitalize, convertBlobToBase64, convertMetersToYards, convertYardsToMeters, dateCompare, deleteUndefinedKeys, difference, doNothing, ensureArray, enumFromValue, enumFromValueTypesafe, enumOrUndefinedFromValue, exhaustiveCheck, filterByMultiple, formatAddress, formatCoordinates, fuzzySearch, getDifferenceBetweenDates, getEndOfDay, getISOStringFromDate, getMultipleCoordinatesFromGeoJsonObject, getPointCoordinateFromGeoJsonObject, getResizedDimensions, getStartOfDay, groupBy, groupTinyDataToOthers, hourIntervals, intersection, isStringArrayEqual, isUUID, isValidImage, nonNullable, numberCompare, numberCompareUnknownAfterHighest, objNotEmpty, pick, removeLeftPadding, resizeBlob, resizeImage, size, stringCompare, stringCompareFromKey, stringNaturalCompare, titleCase, toID, toIDs, toUUID, toggle, trimIds, trimPath, truthy, typeSafeToLowercase, unionArraysByKey }; | ||
export { DateTimeFormat, HoursAndMinutesFormat, align, arrayLengthCompare, arrayNotEmpty, booleanCompare, capitalize, convertBlobToBase64, convertMetersToYards, convertYardsToMeters, dateCompare, deleteUndefinedKeys, difference, doNothing, ensureArray, enumFromValue, enumFromValueTypesafe, enumOrUndefinedFromValue, exhaustiveCheck, filterByMultiple, formatAddress, formatCoordinates, fuzzySearch, getDifferenceBetweenDates, getEndOfDay, getISOStringFromDate, getMultipleCoordinatesFromGeoJsonObject, getPointCoordinateFromGeoJsonObject, getResizedDimensions, getStartOfDay, groupBy, groupTinyDataToOthers, hourIntervals, intersection, isStringArrayEqual, isUUID, isValidImage, nonNullable, numberCompare, numberCompareUnknownAfterHighest, objNotEmpty, pick, removeLeftPadding, resizeBlob, resizeImage, size, stringCompare, stringCompareFromKey, stringNaturalCompare, titleCase, toID, toIDs, toUUID, toggle, trimIds, trimPath, truthy, unionArraysByKey }; |
{ | ||
"name": "@trackunit/shared-utils", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"repository": "https://github.com/Trackunit/manager", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.txt", |
@@ -55,9 +55,2 @@ /** | ||
export type MakePropertyOptional<BaseType, OptionalProp extends keyof BaseType> = MappedOmit<BaseType, OptionalProp> & Partial<Pick<BaseType, OptionalProp>>; | ||
/** | ||
* Converts a string value to lowercase while preserving the original type. | ||
* | ||
* @param value - The string value to convert to lowercase. | ||
* @returns {Lowercase<string> } The lowercase value with the same type as the input value. | ||
*/ | ||
export declare const typeSafeToLowercase: <TStringLiteral extends string>(value: TStringLiteral) => Lowercase<TStringLiteral>; | ||
export {}; |
95365
2527