DefinitelyMaybeTyped
TypeScript to js_of_ocaml
Install / Use
/learn @andrewray/DefinitelyMaybeTypedREADME
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
- Parse the TypeScript definition files
- Define a mapping from the TypeScript to OCaml type system.
- 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
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
