Git Product home page Git Product logo

typings's Introduction

Adobe XD Plugin API typings

Typings for Adobe XD API Surfaces typings-supported autocompletion features in JetBrains WebStorm

Detailed instructions for using these type declarations to get autocompletion features in editors and IDEs can be found in the repository's wiki.

Download

The best option to download the typings is to download the latest release from https://github.com/AdobeXD/typings/releases.

Getting started

These Type Declaration files provide your IDE (e.g. Visual Studio Code or WebStorm) with information about the XD API surface, enabling type checking, autocomplete suggestions, and more. To get started, simply copy the following resources from this repo into your project's main directory:

  • The jsconfig.json file.
  • The types directory.

Your IDE may require further setup to take full advantage of the types. Please see this wiki page for more.

The Type Declaration files also allow you to use TypeScript instead of JavaScript for your plugin development. For that, you'll have to copy the types folder to your project and include it in the paths of your tsconfig.json:

{
  "paths": {
    "*": [
      "types/*"
    ]
  }
}

You may also take a look at the tsconfig.json file contained in this repository for reference.

One last thing

These type declarations track the contents of the official documentation. If an issue with the type declarations stems from an issue with the official documentation, then the type declaration files will be fixed once the issue is addressed in the documentation. This is intentional so as to keep the type declarations both maintainable and in sync with the documentation.

A few notable exceptions include:

  • scenegraph.SceneNode and scenegraph.RootNode, are documented as classes, but implemented as interfaces (in the TypeScript-sense, i.e., without a constructor), which is how they get declared in the typings
  • To avoid ambiguity with the DOM Selection type, the interface Selection is implemented under the name XDSelection (in the global namespace), here.
  • The LinearGradient type is incorrectly documented as LinearGradientFill. This is implemented "the right way" in the typings.

typings's People

Contributors

pklaschka avatar tato123 avatar kerrishotts avatar jfontanez-bw avatar

Watchers

 avatar

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.