mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
chore(docs): Update API ref
This commit is contained in:
23
docs/api/namespaces/Parser/functions/parseCommand.md
Normal file
23
docs/api/namespaces/Parser/functions/parseCommand.md
Normal file
@@ -0,0 +1,23 @@
|
||||
[youtubei.js](../../../README.md) / [Parser](../README.md) / parseCommand
|
||||
|
||||
# Function: parseCommand()
|
||||
|
||||
> **parseCommand**(`data`): [`YTNode`](../../Helpers/classes/YTNode.md) \| `undefined`
|
||||
|
||||
Parses an InnerTube command and returns a YTNode instance if applicable.
|
||||
|
||||
## Parameters
|
||||
|
||||
• **data**: [`RawNode`](../../APIResponseTypes/type-aliases/RawNode.md)
|
||||
|
||||
The raw node data to parse
|
||||
|
||||
## Returns
|
||||
|
||||
[`YTNode`](../../Helpers/classes/YTNode.md) \| `undefined`
|
||||
|
||||
A YTNode instance if parsing is successful, undefined otherwise
|
||||
|
||||
## Defined in
|
||||
|
||||
[src/parser/parser.ts:638](https://github.com/LuanRT/YouTube.js/blob/fc5571629eca037af7de03f4b903da6add1f300b/src/parser/parser.ts#L638)
|
||||
Reference in New Issue
Block a user