Files
YouTube.js/docs/api/namespaces/Misc/classes/TextRun.md
2024-10-28 16:07:35 -03:00

126 lines
2.5 KiB
Markdown

[youtubei.js](../../../README.md) / [Misc](../README.md) / TextRun
# Class: TextRun
## Implements
- `Run`
## Constructors
### new TextRun()
> **new TextRun**(`data`): [`TextRun`](TextRun.md)
#### Parameters
**data**: [`RawNode`](../../APIResponseTypes/type-aliases/RawNode.md)
#### Returns
[`TextRun`](TextRun.md)
#### Defined in
[src/parser/classes/misc/TextRun.ts:13](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L13)
## Properties
### attachment
> **attachment**: `any`
#### Defined in
[src/parser/classes/misc/TextRun.ts:11](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L11)
***
### bold
> **bold**: `boolean`
#### Defined in
[src/parser/classes/misc/TextRun.ts:8](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L8)
***
### endpoint?
> `optional` **endpoint**: [`NavigationEndpoint`](../../YTNodes/classes/NavigationEndpoint.md)
#### Defined in
[src/parser/classes/misc/TextRun.ts:7](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L7)
***
### italics
> **italics**: `boolean`
#### Defined in
[src/parser/classes/misc/TextRun.ts:9](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L9)
***
### strikethrough
> **strikethrough**: `boolean`
#### Defined in
[src/parser/classes/misc/TextRun.ts:10](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L10)
***
### text
> **text**: `string`
#### Implementation of
`Run.text`
#### Defined in
[src/parser/classes/misc/TextRun.ts:6](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L6)
## Methods
### toHTML()
> **toHTML**(): `string`
#### Returns
`string`
#### Implementation of
`Run.toHTML`
#### Defined in
[src/parser/classes/misc/TextRun.ts:30](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L30)
***
### toString()
> **toString**(): `string`
#### Returns
`string`
#### Implementation of
`Run.toString`
#### Defined in
[src/parser/classes/misc/TextRun.ts:26](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/parser/classes/misc/TextRun.ts#L26)