sigma-andex / purescript-typescript-importer

WIP typescript <≡> purescript importer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 are the typescript input files and in 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.

Usage

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

# list modules with typescript type definitions
spago run --exec-args "list"
# import module
spago run --exec-args "import <NODE_MODULE>"

Maintainers

About

WIP typescript <≡> purescript importer

License:MIT No Attribution


Languages

Language:PureScript 80.1%Language:JavaScript 16.5%Language:Dhall 2.6%Language:TypeScript 0.8%