mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
chore: add proper documentation (#763)
* chore: generate API ref using `typedoc` * chore: declutter readme and add links to ytjs.dev * chore: clean up
This commit is contained in:
35
docs/api/namespaces/Generator/functions/toParser.md
Normal file
35
docs/api/namespaces/Generator/functions/toParser.md
Normal file
@@ -0,0 +1,35 @@
|
||||
[youtubei.js](../../../README.md) / [Generator](../README.md) / toParser
|
||||
|
||||
# Function: toParser()
|
||||
|
||||
> **toParser**(`key`, `inference_type`, `key_path`, `indentation`): `string`
|
||||
|
||||
Generate statements to parse a given inference type
|
||||
|
||||
## Parameters
|
||||
|
||||
• **key**: `string`
|
||||
|
||||
The key to parse
|
||||
|
||||
• **inference\_type**: [`InferenceType`](../type-aliases/InferenceType.md)
|
||||
|
||||
The inference type to parse
|
||||
|
||||
• **key\_path**: `string`[] = `...`
|
||||
|
||||
The path to the key (excluding the key itself)
|
||||
|
||||
• **indentation**: `number` = `1`
|
||||
|
||||
The indentation level (used for objects)
|
||||
|
||||
## Returns
|
||||
|
||||
`string`
|
||||
|
||||
Statement to parse the given key
|
||||
|
||||
## Defined in
|
||||
|
||||
[src/parser/generator.ts:575](https://github.com/LuanRT/YouTube.js/blob/eb21af33db708f0355f4fb15881f5d4fabc7b06c/src/parser/generator.ts#L575)
|
||||
Reference in New Issue
Block a user