Skip to content

Commit 3cd3c44

Browse files
committed
🔨 update docs
1 parent 0641b36 commit 3cd3c44

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ const client = new PasteClient("DEV_API_KEY");
4040
## Create a Paste
4141

4242
```ts
43+
import { PasteClient, Publicity, ExpireDate } from "pastebin-api";
4344
const client = new PasteClient("DEV_API_KEY");
4445

4546
const url = await client.createPaste({
4647
code: "const something = 'Hello World!'",
47-
expireDate: "N",
48+
expireDate: ExpireDate.Never,
4849
format: "javascript",
4950
name: "something.js",
50-
publicity: 0,
51+
publicity: Publicity.Public,
5152
});
5253

5354
console.log(url);

0 commit comments

Comments
 (0)