wikimedia / typescript-types Goto Github PK
View Code? Open in Web Editor NEWTypeScript definitions for the Wikimedia Universe
TypeScript definitions for the Wikimedia Universe
I noticed #13 - we shouldn't need to have such fix commits because ideally there would be tests that validate the typescript for each patch. I don't know how such tests are added in github though
Hi, If this is not a suitable place for questions, feel free to close this issue.
As a skin developer, I have called to some variables defined in extensions like below without @wikimedia/types-wikimedia.
code:
/** @type {EchoApi} */ var echoApi = new mw.echo.api.EchoApi();
.d.ts
:
interface EchoApi {}
interface MediaWiki {
echo: {
api: {
EchoApi: {
new (): EchoApi;
};
};
};
}
declare const mw: MediaWiki;
And I want to replace it with the library but I don't know how to. I think I have two options:
About the second option, I couldn't find the syntax to extend global mw
. (It may be because I am not familiar with TypeScript.)
What should I do?
Regards.
To make CI pass we had to downgrade some errors to warnings.
{
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-misused-new": "warn",
"@typescript-eslint/triple-slash-reference": "warn"
}
Thes should probably be fixed.
This is a reminder to release a new version of the library.
@DannyS712 is there any date we should work towards or anything you need for the next release for GlobalWatchlist ?
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.