An open API service indexing awesome lists of open source software.

https://github.com/mistlog/dsl-match-demo

Demo for draft-dsl-match & template project for typedraft
https://github.com/mistlog/dsl-match-demo

dsl pattern-matching typedraft typescript

Last synced: about 1 year ago
JSON representation

Demo for draft-dsl-match & template project for typedraft

Awesome Lists containing this project

README

          

# DSL Match Demo

Demo for [draft-dsl-match](https://github.com/mistlog/draft-dsl-match/tree/develop), used in [https://mistlog.github.io/typedraft-docs/docs/#dsl](https://mistlog.github.io/typedraft-docs/docs/#dsl).

This project can also be used as template project for typedraft.

# Build

```shell
> npm run build
```

Then you get file `vector.ts` in `src` and see `vector1` as output in console.

For more examples, see [ts-pattern.test.tsx](https://github.com/mistlog/draft-dsl-match/blob/develop/src/ts-pattern.test.tsx).