Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F3010068
action.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
936 B
Referenced Files
None
Subscribers
None
action.ts
View Options
import
SubjectPath
from
"./data-structures/subject-path"
;
import
Subject
from
"./subject/subject"
;
export
type
ShowActionName
=
"show"
;
export
type
CreateActionName
=
"create"
;
export
type
EditActionName
=
"edit"
;
export
type
ReplaceActionName
=
"replace"
;
export
type
DeleteActionName
=
"delete"
;
export
type
ActionName
=
|
ShowActionName
|
CreateActionName
|
EditActionName
|
ReplaceActionName
|
DeleteActionName
;
export
default
class
Action
{
subject_path
:
SubjectPath
;
action_name
:
ActionName
;
RootSubject
:
Subject
;
constructor
(
RootSubject
:
Subject
,
subject_path
:
SubjectPath
,
action_name
:
ActionName
)
{
this
.
RootSubject
=
RootSubject
;
this
.
subject_path
=
new
SubjectPath
(
subject_path
);
this
.
action_name
=
action_name
;
}
static
curry
(
RootSubject
:
Subject
)
{
return
function
(
subject_path
:
SubjectPath
,
action_name
:
ActionName
)
{
return
new
Action
(
RootSubject
,
subject_path
,
action_name
);
};
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Wed, May 7, 19:36 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
665844
Default Alt Text
action.ts (936 B)
Attached To
Mode
rS Sealious
Attached
Detach File
Event Timeline
Log In to Comment