MCPcopy Index your code
hub / github.com/AdobeXD/typings

github.com/AdobeXD/typings @v25.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v25.0 ↗ · + Follow
132 symbols 162 edges 11 files 51 documented · 39% 4 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.

Extension points exported contracts — how you extend this code

Shell (Interface)
* To get an instance: `require("uxp").shell`
types/uxp.d.ts
colors (Interface)
* The collection of colors and gradients saved in this document's Asset library
types/assets.d.ts
SceneNodeList (Interface)
* Represents the children of a scenenode. Typically accessed via the SceneNode.children property.
types/index.d.ts
BaseSharedArtifact (Interface)
(no doc)
types/cloud.d.ts
EditSettings (Interface)
(no doc)
types/application.d.ts
Point (Interface)
(no doc)
types/scenegraph.d.ts
Entry (Interface)
* An Entry is the base class for `File` and `Folder`. You'll typically never instantiate an `Entry` directly, but it pro
types/uxp.d.ts
characterStyles (Interface)
* The collection of character styles saved in this document's Assets library.
types/assets.d.ts

Core symbols most depended-on inside this repo

write
called by 2
types/uxp.d.ts
openExternal
called by 1
types/uxp.d.ts
moveTo
called by 1
types/uxp.d.ts
getTemporaryFolder
called by 1
types/uxp.d.ts
createFile
called by 1
types/uxp.d.ts
getEntry
called by 1
types/uxp.d.ts
get
called by 1
types/assets.d.ts
copyTo
called by 0
types/uxp.d.ts

Shape

Class 67
Method 33
Interface 26
Enum 5
Function 1

Languages

TypeScript100%

Modules by API surface

types/uxp.d.ts52 symbols
types/scenegraph.d.ts48 symbols
types/assets.d.ts9 symbols
types/index.d.ts8 symbols
types/application.d.ts8 symbols
types/cloud.d.ts6 symbols
sample.js1 symbols

For agents

$ claude mcp add typings \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact