Skip to content

Commit 7841523

Browse files
committed
Add import instruction for Deno
1 parent 03eb1ee commit 7841523

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,13 @@ Via yarn
8080
yarn add ts-pattern
8181
```
8282

83+
The Deno distribution of the module is published as [ts_pattern](https://deno.land/x/ts_pattern) on `deno.land/x`
84+
85+
```typescript
86+
import { match, P } from 'https://deno.land/x/ts_pattern@v<X.Y.Z>/mod.ts';
87+
```
88+
Replace `<X.Y.Z>` by [the latest version](https://github.com/gvergnaud/ts-pattern/tags).
89+
8390
### Compatibility with different TypeScript versions
8491

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

0 commit comments

Comments
 (0)