Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12661824
disallow-update.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
557 B
Referenced Files
None
Subscribers
None
disallow-update.ts
View Options
import
{
HybridField
,
Field
,
Context
,
SuperContext
}
from
"../../../main"
;
export
default
class
DisallowUpdate
<
T
extends
Field
>
extends
HybridField
<
T
>
{
getTypeName
=
()
=>
"disallow-update"
;
async
isProperValue
(
context
:
Context
,
new_value
:
Parameters
<
T
[
"isProperValue"
]
>
[
1
],
old_value
?:
Parameters
<
T
[
"isProperValue"
]
>
[
2
]
)
{
if
(
old_value
===
undefined
)
{
return
this
.
virtual_field
.
isProperValue
(
new
SuperContext
(
context
),
new_value
,
old_value
);
}
return
Field
.
invalid
(
"You cannot change a previously set value"
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Fri, Nov 28, 15:48 (12 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1064092
Default Alt Text
disallow-update.ts (557 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment