Announcement

Collapse
No announcement yet.

[OPEN] [#29] Retyped for mobx, mobx-state-tree and antd

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • [OPEN] [#29] Retyped for mobx, mobx-state-tree and antd

    Hello!
    I didn't find this libraries (mobx, mobx-state-tree, antd) in DefinitelyTyped.
    What i need to do to make these libraries appear in retyped?

  • #2
    Hi colderlord,

    Currently we have 2 options for generating Retyped packages:
    1. Process declarations published in DefinitelyTyped repository.
    2. Grab typings officially published and maintained by project authors.
    Both options assume that there is a TypeScript declaration file or files (having .d.ts extension) representing API of a library. I've had a quick look at the libraries you specified and have not found reasonable declaration files in their repos. If I'm wrong, please point their location.

    If the files do not exist, you can either ask project maintainers to generate and publish them along with the sources, or you can be the first who would create those typings and publish them in DefinitelyTyped repo. Once typings are available, Retyped will be able to grab, parse them and generate NuGet packages.

    Comment


    • #3
      Thank you for the answer.
      This libraries are written in TypeScript language, thats why you can't find .d.ts in theirs repos.
      .d.ts are generated after build.
      You can find .d.ts in:
      1. If you download library from their repo and build it
      2. unpkg.com:
      mobx
      mobx-state-tree
      antd

      Comment


      • #4
        Hi colderlord – We'll need the .d.ts file(s) published in some kind of official source before Retyped can pick them up and create a NuGet package. Options include any of the following:
        1. DefinitelyTyped repo
        2. NPM
        3. Original project repo

        Comment


        • #5
          Ok.
          Here is NPM projects links:
          1. mobx
          2. mobx-react (forgot about this)
          3. mobx-state-tree
          4. antd

          Comment


          • #6
            Thanks for the links to the NPM packages. This should work.

            These look like interesting .d.ts files.

            Comment


            • #7
              Thanks for the answer.
              So.. What should i do next?
              Now these libraries will automatically added to retyped and will soon appear in nuget?

              Comment


              • #8
                We will try our best to include the library in Retyped as soon as possible.

                I've created Issue #29 to track the status of Retyped.mobx.

                Comment


                • #9
                  Thank you very much!

                  Comment


                  • #10
                    Just to update this thread - Retyped packages for mobx and mobx-react have been pushed to NuGet:A simple demo project for Retyped.mobx is available here.

                    Comment

                    Working...
                    X