in src/ObjectStoreProviderUtils.ts [145:164]
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."
);
}