wp-lib-extra
v1.2.3
Published
A function library for Wikipedia.
Downloads
12
Maintainers
Readme
wp-lib-extra
The source code and TypeScript definitions for ja:MediaWiki:Gadget-WpLibExtra.js.
This package is distributed for the purposes of providing developers with a development environment to create Wikipedia gadgets/user scripts using this library as a module. (Note that you cannot use the library as a back-end module because it is a front-end program.)
For the functionalities of this library, see the API documentation.
Usage
To use the type definitions of the library, run:
npm i -D wp-lib-extra
and edit your tsconfig.json
so that it includes:
"include": [
"./node_modules/wp-lib-extra/types"
]
Then, the WpLibExtra
interface should be available globally: