Skip to content

Commit

Permalink
Update readme.md
Browse files Browse the repository at this point in the history
use jsr import in examples
  • Loading branch information
codybrom authored Aug 2, 2024
1 parent 938fb81 commit d7f13a3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,17 @@ This will add the latest version of Denim to your project's dependencies.

## Usage

To import straight from JSR,

```typescript
import { ThreadsPostRequest, createThreadsContainer, publishThreadsContainer } from 'jsr:@codybrom/denim@^1.0.2';
```


### Basic Usage

```typescript
import { createThreadsContainer, publishThreadsContainer, ThreadsPostRequest } from "@codybrom/denim/";
import { createThreadsContainer, publishThreadsContainer, ThreadsPostRequest } from "jsr:@codybrom/denim@^1.0.2";

const request: ThreadsPostRequest = {
userId: "YOUR_USER_ID",
Expand Down

0 comments on commit d7f13a3

Please sign in to comment.