Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/sigma-andex/purescript-typescript-importer

WIP typescript <≡> purescript importer
https://github.com/sigma-andex/purescript-typescript-importer

purescript typescript

Last synced: about 2 months ago
JSON representation

WIP typescript <≡> purescript importer

Awesome Lists containing this project

README

        

# purescript-typescript-importer

Experiment of writing a typescript importer for purescript. Very early stage and ongoing development, don't use it yet!

The current state of typescript support can be seen in the testfiles folder. In [`testfiles/original`](./testfiles/original/) are the typescript input files and in [`testfiles/golden`](./testfiles/golden/) the expected output of the typescript support that is currently passing.

## Goals & non-goals

The goal of this project is to create a tool that generates useful and working purescript ffis from typescript type definitions. It is not meant to create a fully-fledged typescript to purescript transpiler, as I don't see much added value to this and it's also a whole different story scope-wise.
It is also (currently) not a goal to go the other way around, i.e. from purescript to typescript.

## Typescript <≡> Purescript type correspondence

See [Typescript <≡> Purescript type correspondence](docs/type-correspondence.md).

## Usage

WIP, run it using spago, pass arguments using --exec-args

```bash
# list modules with typescript type definitions
spago run --exec-args "list"
# import module
spago run --exec-args "import "
```

## Maintainers

- [sigma-andex](https://github.com/sigma-andex/)