Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7188279
shortid.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
314 B
Referenced Files
None
Subscribers
None
shortid.ts
View Options
import
{
Field
}
from
"../../../main"
;
import
shortid
from
"shortid"
;
export
default
class
ShortID
extends
Field
{
typeName
=
"shortid"
;
hasIndex
=
()
=>
true
;
async
isProperValue
()
{
return
Field
.
valid
();
}
async
encode
(
_
:
any
,
input
:
string
|
null
)
{
return
input
?
input
:
shortid
.
generate
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Tue, Jul 8, 08:06 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
802452
Default Alt Text
shortid.ts (314 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment