element-book - v26.16.0
Preparing search index...
isBookEntry
Function isBookEntry
isBookEntry
<
const
SpecificType
extends
BookEntryType
>
(
entry
:
unknown
,
entryType
:
SpecificType
,
)
:
entry
is
|
Extract
<
BookPage
,
{
entryType
:
SpecificType
}
>
|
Extract
<
BookRoot
,
{
entryType
:
SpecificType
}
>
|
Extract
<
BookElementExample
,
{
entryType
:
SpecificType
}
>
Check if the input is a book entry of the given type.
Type Parameters
const
SpecificType
extends
BookEntryType
Parameters
entry
:
unknown
entryType
:
SpecificType
Returns
entry
is
|
Extract
<
BookPage
,
{
entryType
:
SpecificType
}
>
|
Extract
<
BookRoot
,
{
entryType
:
SpecificType
}
>
|
Extract
<
BookElementExample
,
{
entryType
:
SpecificType
}
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
element-book - v26.16.0
Loading...
Check if the input is a book entry of the given type.