Add declarative break()

This commit is contained in:
Dolan Miu
2020-12-23 23:31:28 +00:00
parent d6cce4ae15
commit 6100ff4c4e
3 changed files with 34 additions and 7 deletions

View File

@ -158,6 +158,15 @@ Sometimes you would want to put text underneath another line of text but inside
```ts
const text = new TextRun({
text: "break",
break: true,
break: 1,
});
```
Adding two breaks:
```ts
const text = new TextRun({
text: "break",
break: 2,
});
```