youtubei.js / YTNodes / PlaylistCollaborationView
Class: PlaylistCollaborationView
Defined in: src/parser/classes/PlaylistCollaborationView.ts:7
Extends
Constructors
Constructor
new PlaylistCollaborationView(
data):PlaylistCollaborationView
Defined in: src/parser/classes/PlaylistCollaborationView.ts:23
Parameters
data
Returns
PlaylistCollaborationView
Overrides
Properties
allow_new_collaborators_playlist_collaboration_setting
allow_new_collaborators_playlist_collaboration_setting:
YTNode|null
Defined in: src/parser/classes/PlaylistCollaborationView.ts:18
collaborate_playlist_collaboration_setting
collaborate_playlist_collaboration_setting:
YTNode|null
Defined in: src/parser/classes/PlaylistCollaborationView.ts:13
collaboration_type?
optionalcollaboration_type?:"COLLABORATION_TYPE_UNSPECIFIED"|"COLLABORATION_TYPE_DEFAULT"|"COLLABORATION_TYPE_TASTE_MATCH"
Defined in: src/parser/classes/PlaylistCollaborationView.ts:17
copy_link_button
copy_link_button:
YTNode|null
Defined in: src/parser/classes/PlaylistCollaborationView.ts:12
invite_collaborators_button
invite_collaborators_button:
YTNode|null
Defined in: src/parser/classes/PlaylistCollaborationView.ts:21
leave_collaborative_playlist_confirmation_dialog
leave_collaborative_playlist_confirmation_dialog:
YTNode|null
Defined in: src/parser/classes/PlaylistCollaborationView.ts:16
playlist_collaboration_entity_key?
optionalplaylist_collaboration_entity_key?:string
Defined in: src/parser/classes/PlaylistCollaborationView.ts:14
playlist_collaboration_form_schema?
optionalplaylist_collaboration_form_schema?:PlaylistCollaborationFormSchema
Defined in: src/parser/classes/PlaylistCollaborationView.ts:19
playlist_collaborators?
optionalplaylist_collaborators?:ObservedArray<ContentListItemView>
Defined in: src/parser/classes/PlaylistCollaborationView.ts:10
playlist_collaborators_data?
optionalplaylist_collaborators_data?:PlaylistCollaborationViewModelPlaylistCollaboratorData[]
Defined in: src/parser/classes/PlaylistCollaborationView.ts:15
turn_off_allow_new_collaborators_dialog
turn_off_allow_new_collaborators_dialog:
YTNode|null
Defined in: src/parser/classes/PlaylistCollaborationView.ts:20
turn_off_collaboration_dialog
turn_off_collaboration_dialog:
YTNode|null
Defined in: src/parser/classes/PlaylistCollaborationView.ts:11
type
readonlytype:string
Defined in: src/parser/helpers.ts:8
Inherited from
type
statictype:string='PlaylistCollaborationView'
Defined in: src/parser/classes/PlaylistCollaborationView.ts:8
Overrides
Methods
as()
as<
T,K>(...types):InstanceType<K[number]>
Defined in: src/parser/helpers.ts:29
Cast to one of the given types.
Type Parameters
T
T extends YTNode
K
K extends YTNodeConstructor<T>[]
Parameters
types
...K
The types to cast to
Returns
InstanceType<K[number]>
The node cast to one of the given types
Throws
If the node is not of the given type
Inherited from
hasKey()
hasKey<
T,R>(key):this is PlaylistCollaborationView & { [k in string]: R }
Defined in: src/parser/helpers.ts:41
Check for a key without asserting the type.
Type Parameters
T
T extends string
R
R = any
Parameters
key
T
The key to check
Returns
this is PlaylistCollaborationView & { [k in string]: R }
Whether the node has the key
Inherited from
is()
is<
T,K>(...types):this is InstanceType<K[number]>
Defined in: src/parser/helpers.ts:19
Check if the node is of the given type.
Type Parameters
T
T extends YTNode
K
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
key()
key<
T,R>(key):Maybe
Defined in: src/parser/helpers.ts:51
Assert that the node has the given key and return it.
Type Parameters
T
T extends string
R
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