SkillAgentSearch skills...

DefinitelyMaybeTyped

TypeScript to js_of_ocaml

Install / Use

/learn @andrewray/DefinitelyMaybeTyped
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

DefinitelyMaybeTyped

TypeScript adds a static typing scheme to JavaScript.
DefinitelyTyped provides a large repository of TypeScript definition files for JavaScript libraries.

The burning question is can TypeScript definitions be usefully converted to OCaml for use with js_of_ocaml?

There are three parts to this

  1. Parse the TypeScript definition files
  2. Define a mapping from the TypeScript to OCaml type system.
  3. As automatically as possible do the conversion

Status

A rough and ready parser which can successfully parse the whole DefinitelyType repository.

Starting to consider how to convert to ocaml.

Known issues

  • Terrible error localisation

Related Skills

View on GitHub
GitHub Stars38
CategoryDevelopment
Updated5mo ago
Forks2

Languages

OCaml

Security Score

72/100

Audited on Oct 25, 2025

No findings