Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/johanholmerin/tscm-examples

TypeScript Compiler Macro Examples (deprecated)
https://github.com/johanholmerin/tscm-examples

graphql macros pgtyped tscm typescript

Last synced: 15 days ago
JSON representation

TypeScript Compiler Macro Examples (deprecated)

Awesome Lists containing this project

README

        

# Deprecated

Since TypeScript 5 this project is no longer supported

---

# tscm example macros

A collection of macros for [tscm](https://github.com/johanholmerin/tscm). Intended as demonstration of tscm, **not production ready**. If you are interested in contributing to a macro, feel free to open an issue.

## Installation

```sh
# Yarn
yarn add tscm git+https://github.com/johanholmerin/tscm-examples#semver:^0.1.0

# npm
npm install tscm git+https://github.com/johanholmerin/tscm-examples#semver:^0.1.0
```

## Usage

Usage instructions for the macros are available at the links below. For compiler setup instructions, see the [tscm](https://github.com/johanholmerin/tscm) repo.

## Macros

- [graphql](macros/graphql)
- [yaml](macros/yaml)
- [const-json](macros/const-json)
- [json-schema](macros/json-schema)
- [typecheck](macros/typecheck)
- [pgtyped](macros/pgtyped)