Giter Site home page Giter Site logo

typescript-types's People

Contributors

cjming avatar dannys712 avatar edg2s avatar jdlrobson avatar lens0021 avatar lucaswerkmeister avatar melvinthoabala avatar nicholasray avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

typescript-types's Issues

[Question] How do I handle types of other extensions?

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:

  • Adding definitions for extensions to this repository.
  • Extending types-wikimedia in my own skin.

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.

Fix issues raised by linter

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.

Release 0.2.0

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 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.