Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F22393331
context.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
470 B
Referenced Files
None
Subscribers
None
context.ts
View Options
import
{
Context
,
Field
}
from
"../../../main"
;
export
default
class
ContextField
extends
Field
{
typeName
=
"context"
;
async
isProperValue
(
_
:
Context
,
value
:
Context
)
{
if
(
value
instanceof
Context
)
{
return
Field
.
valid
();
}
else
{
return
Field
.
invalid
(
"Provided value is not an instance of Sealious.Context"
);
}
}
async
encode
(
_
:
Context
,
value
:
Context
|
null
)
{
if
(
value
===
null
)
{
return
null
;
}
return
value
.
toDBEntry
();
}
}
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Fri, Nov 27, 16:02 (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1226179
Default Alt Text
context.ts (470 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline