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 16, 2022
1 parent 2e97803 commit 8ec91da
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 8ec91da

Please sign in to comment.