Document the 'keepOriginalStyles' options (#2549)

Co-authored-by: Dolan <dolan_miu@hotmail.com>
This commit is contained in:
younesspotmaster
2024-05-20 04:13:05 +02:00
committed by GitHub
parent 022b25cfcd
commit e379a7fe04

View File

@ -35,6 +35,9 @@ interface Patch {
| type | `PatchType` | Required | `DOCUMENT`, `PARAGRAPH` |
| children | `FileChild[] or ParagraphChild[]` | Required | The contents to replace with. A `FileChild` is a `Paragraph` or `Table`, whereas a `ParagraphChild` is typical `Paragraph` children. |
The patcher also takes in a `keepOriginalStyles` boolean, which will preserve the styles of the patched text when set to true.
### How to patch existing document
1. Open your existing word document in your favorite Word Processor