Giter Site home page Giter Site logo

Comments (6)

stefanocudini avatar stefanocudini commented on June 15, 2024 1

I leave the issue open if anyone TP dev wants to contribute with a PR

from leaflet-search.

stefanocudini avatar stefanocudini commented on June 15, 2024

leaflet was not written in typescript

from leaflet-search.

devaskim avatar devaskim commented on June 15, 2024

@stefanocudini Sorry, but not a serious answer.
Leaflet has official typings or type definitions to use it in Typescript-ed project.

from leaflet-search.

stefanocudini avatar stefanocudini commented on June 15, 2024

@stefanocudini Sorry, but not a serious answer. Leaflet has official typings or type definitions to use it in Typescript-ed project.

may be it's official for github.com/DefinitelyTyped not for Leaflet organization..

from leaflet-search.

devaskim avatar devaskim commented on June 15, 2024

@stefanocudini Thanks for your time but our discussion is out of scope of original question. I think you agree with me.

Let's start from the beginning

  1. Do you have plans to add Typescripts type definitions for your plugin?
  2. Here is unofficial attempt to create type definitions, but that was a long time ago and I could success with it.

I'm not an experienced Typescript developer to do such job so I decided to ask for help there.

from leaflet-search.

stefanocudini avatar stefanocudini commented on June 15, 2024
  1. Do you have plans to add Typescripts type definitions for your plugin?
    no
  1. Here is unofficial attempt to create type definitions, but that was a long time ago and I could success with it.

it sounds interesting but I don't know Typescripts and I have no idea how this works, however the types for the options all seem right:
https://github.com/bastisk/leaflet-search-types/blob/master/index.d.ts#L5

from leaflet-search.

Related Issues (20)

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.