pastelmind / kolmafia-types Goto Github PK
View Code? Open in Web Editor NEWTypeScript type declarations for KoLmafia. Alternative to kolmafia-js.
License: MIT License
TypeScript type declarations for KoLmafia. Alternative to kolmafia-js.
License: MIT License
In #20, I added a custom test script (run-tests.ts
) to work around a limitation in tsd, our testing tool. Because tsd 0.14.0 does not support the typesVersions
property in package.json
, it cannot find our typings when invoked from the shell. Since it does not provide any mechanism for specifying a custom type source, we need to temporarily supply a types
field in package.json
.
To work around this, I wrote a tiny Node.js script (run-tests.ts
) that monkey-patches package.json
with a types
field before running tsd
, then restore the original afterwards. I also installed ts-node to avoid an extra compile step when running the script.
The main
branch of tsd has recently gained support for custom type sources. Another PR adds an accompanying CLI option for this. If the next release of tsd includes these changes, we may be able to replace this script with an invocation of tsd --typings-file src/index.d.ts
.
tsd
from the command line instead@types/node
This is a tracking issue.
There are 690 KoLmafia library functions as of r20673 (overloaded forms are counted separately). Documenting them all is a mountainous task and may take several months.
I'm going to tackle them by dividing them into groups, each starting with an English letter:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.