Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995421
human-comparator-to-query.ts
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
692 B
Referenced Files
None
Subscribers
None
human-comparator-to-query.ts
View Options
export
type
HumanComparator
=
|
">"
|
"from"
|
"gt"
|
"gte"
|
">="
|
"=>"
|
"<"
|
"to"
|
"lt"
|
"lte"
|
"<="
|
"=<"
|
"="
;
export
type
DBComparator
=
"$gt"
|
"$gte"
|
"$lt"
|
"$lte"
|
"$eq"
;
const
human_comparators_to_query
:
{
[
comparator
in
HumanComparator
]
:
DBComparator
;
}
=
{
">"
:
"$gt"
,
from
:
"$gte"
,
gt
:
"$gt"
,
gte
:
"$gte"
,
">="
:
"$gte"
,
"=>"
:
"$gte"
,
"<"
:
"$lt"
,
to
:
"$lte"
,
lt
:
"$lt"
,
lte
:
"$lte"
,
"<="
:
"$lte"
,
"=<"
:
"$lte"
,
"="
:
"$eq"
,
};
export
default
function
humanComparatorToQuery
(
comparator
:
HumanComparator
)
:
DBComparator
{
return
human_comparators_to_query
[
comparator
];
}
export
type
ComparatorObject
<
T
>
=
{
[
key
in
HumanComparator
]
:
T
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 04:10 (12 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
553228
Default Alt Text
human-comparator-to-query.ts (692 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment