in src/NoSqlProviderUtils.ts [94:107]
export function serializeValueToOrderableString(val: KeyComponentType): string {
if (typeof val === 'number') {
return 'A' + serializeNumberToOrderableString(val as number);
}
if (isDate(val)) {
return 'B' + serializeNumberToOrderableString((val as Date).getTime());
}
if (typeof val === 'string') {
return 'C' + (val as string);
}
const type = isObject(val) ? Object.getPrototypeOf(val).constructor : typeof val;
throw new Error('Type \'' + type + '\' unsupported at this time. Only numbers, Dates, and strings are currently supported.');
}