Skip to content

Commit

Permalink
Add import instruction for Deno
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Oct 24, 2022
1 parent 03eb1ee commit 7841523
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ Via yarn
yarn add ts-pattern
```

The Deno distribution of the module is published as [ts_pattern](https://deno.land/x/ts_pattern) on `deno.land/x`

```typescript
import { match, P } from 'https://deno.land/x/ts_pattern@v<X.Y.Z>/mod.ts';
```
Replace `<X.Y.Z>` by [the latest version](https://github.com/gvergnaud/ts-pattern/tags).

### Compatibility with different TypeScript versions

Note: TS-Pattern assumes [Strict Mode](https://www.typescriptlang.org/tsconfig#strict) is enabled in your `tsconfig.json` file.
Expand Down

0 comments on commit 7841523

Please sign in to comment.