Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F8922522
simple-form-field.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
449 B
Referenced Files
None
Subscribers
None
simple-form-field.ts
View Options
import
{
FieldParseResult
,
FormField
}
from
"./field"
;
import
{
FormDataValue
}
from
"../form"
;
import
{
BaseContext
}
from
"koa"
;
export
class
SimpleFormField
extends
FormField
<
string
|
null
>
{
async
parse
(
_
:
BaseContext
,
raw_value
:
FormDataValue
)
:
Promise
<
FieldParseResult
<
string
>>
{
return
{
parsed_value
:
(
raw_value
||
""
).
toString
(),
parsable
:
true
,
error
:
null
,
};
}
public
getEmptyValue
()
:
string
{
return
""
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Sep 20, 14:42 (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
949287
Default Alt Text
simple-form-field.ts (449 B)
Attached To
Mode
rSGEN sealgen
Attached
Detach File
Event Timeline
Log In to Comment