Using const rather than var and let, and using ts rather than js examples

This commit is contained in:
Dolan Miu
2019-08-06 17:51:13 +01:00
parent 0f1f398e6d
commit 820e5edc1e
13 changed files with 87 additions and 87 deletions

View File

@ -18,8 +18,8 @@ npm install --save docx
Then you can `require` or `import` as usual:
```js
let docx = require("docx");
```ts
const docx = require("docx");
```
```ts
@ -30,7 +30,7 @@ import { ... } from "docx";
## Basic Usage
```js
```ts
import * as fs from "fs";
import { Document, Packer, Paragraph, TextRun } from "docx";