Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F969449
registry.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
430 B
Referenced Files
None
Subscribers
None
registry.ts
View Options
import
{
Component
,
ComponentConstructor
}
from
"./component"
;
export
class
Registry
{
map
:
Map
<
string
,
Component
>
=
new
Map
();
add
(
type
:
string
,
component
:
ComponentConstructor
<
any
>
)
{
this
.
map
.
set
(
type
,
new
component
());
}
get
(
type
:
string
)
:
Component
|
null
{
const
ret
=
this
.
map
.
get
(
type
);
return
ret
?
ret
:
null
;
}
getAll
()
:
Record
<
string
,
Component
>
{
return
Object
.
fromEntries
(
this
.
map
.
entries
());
}
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Sat, Nov 23, 02:50 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
547797
Default Alt Text
registry.ts (430 B)
Attached To
Mode
R130 jdd
Attached
Detach File
Event Timeline
Log In to Comment