GithubHelp home page GithubHelp logo

diullei / ts2reason Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 1.0 303 KB

Automatic generation of ReasonML bindings using TypeScript definitions.

TypeScript 14.85% OCaml 83.61% C++ 1.54%
typescript typescript-definitions reasonml-bindings reasonml

ts2reason's Introduction

ts2reason

Automatic generation of ReasonML bindings using TypeScript definitions.

** THIS IS A WORK IN PROGRESS PROJECT **

I just started to learn ReasonML and something that I'm missing is the ability to find definitions for popular javascript libraries as we have for TypeScript on DefinitelyTyped.

Inspired by the ts2fable project, my ambition with this project is to create a tool to generate ReasonML bindings from TypeScript definition.

Do not expect to find something usable now

See the spec for more details.

ts2reason's People

Contributors

diullei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

idkjs

ts2reason's Issues

How can I help?

If you tell me what to do, I will do it. Been doing this manually.

Using project

Hey brother. I wanted to play around with this project. I am trying to figure out.

I downloaded this project: https://github.com/reakit/reakit/tree/master/packages/reakit then installed ts2reason with yarn add -D https://github.com/Diullei/ts2reason.git

I then tried running a few different ways with no joy. Would you mind sharing with me how to use it? Thank you.

Here is some output of failed attempt:

reakit node ../../node_modules/ts2reason
internal/modules/cjs/loader.js:670
    throw err;
    ^

Error: Cannot find module '/Users/prisc_000/Downloads/reakit-master/node_modules/ts2reason'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
    at Function.Module._load (internal/modules/cjs/loader.js:591:27)
    at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
    at internal/main/run_main_module.js:21:11
➜  reakit node ../../node_modules/ts2reason/lib/ts2reason
internal/modules/cjs/loader.js:670
    throw err;
    ^

Error: Cannot find module '../src/Cli.bs'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
    at Function.Module._load (internal/modules/cjs/loader.js:591:27)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/Users/prisc_000/Downloads/reakit-master/node_modules/ts2reason/lib/ts2reason:1:1)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
➜  reakit node ../../node_modules/ts2reason/lib/ts2reason
internal/modules/cjs/loader.js:670
    throw err;
    ^

Error: Cannot find module '../src/Cli.bs'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
    at Function.Module._load (internal/modules/cjs/loader.js:591:27)
    at Module.require (internal/modules/cjs/loader.js:723:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (/Users/prisc_000/Downloads/reakit-master/node_modules/ts2reason/lib/ts2reason:1:1)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
➜  reakit node ../../node_modules/ts2reason/lib/ts2reason

/Users/prisc_000/Downloads/reakit-master/node_modules/ts2reason/node_modules/bs-platform/lib/js/caml_array.js:75
    throw [
    ^
Invalid_argument,-3,index out of bounds
➜  reakit node ../../node_modules/ts2reason/lib/ts2reason /Users/prisc_000/Downloads/reakit-master/packages/reakit/src/index.ts

➜  reakit node ../../node_modules/ts2reason/lib/ts2reason /Users/prisc_000/Downloads/reakit-master/packages/reakit/src/utils/index.ts

➜  reakit node ../../node_modules/ts2reason/lib/ts2reason

/Users/prisc_000/Downloads/reakit-master/node_modules/ts2reason/node_modules/bs-platform/lib/js/caml_array.js:75
    throw [
    ^
Invalid_argument,-3,index out of bounds
➜  reakit node ../../node_modules/ts2reason/lib/ts2reason /Users/prisc_000/Downloads/reakit-master/types/index.d.ts

➜  reakit yarn add -D https://github.com/Diullei/ts2reason.git

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.