Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7511411
primitive.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
501 B
Referenced Files
None
Subscribers
None
primitive.ts
View Options
import
{
BlockJSON
}
from
"./block"
;
import
{
HeadingJSON
,
HeadingPrimitive
}
from
"./heading"
;
import
{
ImageJSON
}
from
"./image"
;
import
{
TextJSON
}
from
"./text"
;
export
type
PrimitiveJSON
=
BlockJSON
|
HeadingJSON
|
ImageJSON
|
TextJSON
;
export
abstract
class
Primitive
{
id
:
string
|
null
;
abstract
to_html
()
:
string
;
extract_headings
()
:
HeadingPrimitive
[]
{
return
[];
}
extract_images
()
:
string
[]
{
return
[];
}
// abstract parse(json: Record<string, unknown>): Primitive;
}
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, Jul 21, 00:22 (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
799444
Default Alt Text
primitive.ts (501 B)
Attached To
Mode
rJDD jdd
Attached
Detach File
Event Timeline
Log In to Comment