youtubei.js / YTNodes / MicroformatData
Class: MicroformatData
Extends
Constructors
new MicroformatData()
new MicroformatData(
data
):MicroformatData
Parameters
• data: RawNode
Returns
Overrides
Defined in
src/parser/classes/MicroformatData.ts:32
Properties
android_package
android_package:
string
Defined in
src/parser/classes/MicroformatData.ts:14
app_name
app_name:
string
Defined in
src/parser/classes/MicroformatData.ts:13
available_countries
available_countries:
string
[]
Defined in
src/parser/classes/MicroformatData.ts:30
description
description:
string
Defined in
src/parser/classes/MicroformatData.ts:10
ios_app_arguments
ios_app_arguments:
string
Defined in
src/parser/classes/MicroformatData.ts:16
ios_app_store_id
ios_app_store_id:
string
Defined in
src/parser/classes/MicroformatData.ts:15
is_family_safe
is_family_safe:
boolean
Defined in
src/parser/classes/MicroformatData.ts:28
is_unlisted
is_unlisted:
boolean
Defined in
src/parser/classes/MicroformatData.ts:27
noindex
noindex:
string
Defined in
src/parser/classes/MicroformatData.ts:26
og_type
og_type:
string
Defined in
src/parser/classes/MicroformatData.ts:17
schema_dot_org_type
schema_dot_org_type:
string
Defined in
src/parser/classes/MicroformatData.ts:25
site_name
site_name:
string
Defined in
src/parser/classes/MicroformatData.ts:12
tags
tags:
string
[]
Defined in
src/parser/classes/MicroformatData.ts:29
thumbnail
thumbnail:
Thumbnail
[]
Defined in
src/parser/classes/MicroformatData.ts:11
title
title:
string
Defined in
src/parser/classes/MicroformatData.ts:9
twitter_card_type
twitter_card_type:
string
Defined in
src/parser/classes/MicroformatData.ts:23
twitter_site_handle
twitter_site_handle:
string
Defined in
src/parser/classes/MicroformatData.ts:24
type
readonly
type:string
Inherited from
Defined in
url_applinks_android
url_applinks_android:
string
Defined in
src/parser/classes/MicroformatData.ts:20
url_applinks_ios
url_applinks_ios:
string
Defined in
src/parser/classes/MicroformatData.ts:19
url_applinks_web
url_applinks_web:
string
Defined in
src/parser/classes/MicroformatData.ts:18
url_canonical
url_canonical:
string
Defined in
src/parser/classes/MicroformatData.ts:8
url_twitter_android
url_twitter_android:
string
Defined in
src/parser/classes/MicroformatData.ts:22
url_twitter_ios
url_twitter_ios:
string
Defined in
src/parser/classes/MicroformatData.ts:21
type
static
type:string
='MicroformatData'
Overrides
Defined in
src/parser/classes/MicroformatData.ts:6
Methods
as()
as<
T
,K
>(...types
):InstanceType
<K
[number
]>
Cast to one of the given types.
Type Parameters
• T extends YTNode
• K extends YTNodeConstructor
<T
>[]
Parameters
• ...types: K
Returns
InstanceType
<K
[number
]>
Inherited from
Defined in
hasKey()
hasKey<
T
,R
>(key
):this is MicroformatData & { [k in string]: R }
Check for a key without asserting the type.
Type Parameters
• T extends string
• R = any
Parameters
• key: T
The key to check
Returns
this is MicroformatData & { [k in string]: R }
Whether the node has the key
Inherited from
Defined in
is()
is<
T
,K
>(...types
):this is InstanceType<K[number]>
Check if the node is of the given type.
Type Parameters
• T extends YTNode
• K extends YTNodeConstructor
<T
>[]
Parameters
• ...types: K
The type to check
Returns
this is InstanceType<K[number]>
whether the node is of the given type
Inherited from
Defined in
key()
key<
T
,R
>(key
):Maybe
Assert that the node has the given key and return it.
Type Parameters
• T extends string
• R = any
Parameters
• key: T
The key to check
Returns
The value of the key wrapped in a Maybe
Throws
If the node does not have the key