Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No initialize() function in L.Class definition #14808

Closed
3 tasks done
mikhailshilkov opened this issue Feb 23, 2017 · 1 comment
Closed
3 tasks done

No initialize() function in L.Class definition #14808

mikhailshilkov opened this issue Feb 23, 2017 · 1 comment

Comments

@mikhailshilkov
Copy link

When creating a new leaflet control in typescript, I call something like

export var MyThing = L.Polyline.extend({
  initialize: function (latlngs: L.LatLngBoundsExpression, corridor: number, options?: L.PolylineOptions): void {
    L.Polyline.prototype.initialize.call(this, latlngs, options);

which gives a typescript error because initialize is not in type definitions.

Such usage is described in the documentation:
http://leafletjs.com/reference-1.0.3.html#class

Any reason why it's not defined yet?

@mikhailshilkov mikhailshilkov changed the title No initialize function in L.Class definition No initialize function in L.Class definition Feb 23, 2017
@mikhailshilkov mikhailshilkov changed the title No initialize function in L.Class definition No initialize() function in L.Class definition Feb 23, 2017
mikhailshilkov pushed a commit to mikhailshilkov/DefinitelyTyped that referenced this issue Feb 24, 2017
@orta orta closed this as completed Jun 7, 2021
@orta
Copy link
Collaborator

orta commented Jun 7, 2021

Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the @types modules in DefinitelyTyped.

To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the definitely-typed channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants