Atrium — shared contracts and the typesetting engine
Preparing search index...
@ebook-reader/shared
kindForFormat
Function kindForFormat
kindForFormat
(
format
:
"pdf"
|
"epub"
|
"mp3"
|
"mp4"
|
"webm"
,
)
:
"book"
|
"audio"
|
"video"
Map a file format to its media kind (pdf/epub → book, mp3 → audio, mp4/webm → video).
Parameters
format
:
"pdf"
|
"epub"
|
"mp3"
|
"mp4"
|
"webm"
Returns
"book"
|
"audio"
|
"video"
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Atrium — shared contracts and the typesetting engine
Loading...
Map a file format to its media kind (pdf/epub → book, mp3 → audio, mp4/webm → video).