sketch-types

Community built set of typescript declarations for writing Sketch plugins.

Usage no npm install needed!

<script type="module">
  import sketchTypes from 'https://cdn.skypack.dev/sketch-types';
</script>

README

Notice: previous sketch-typings now rename to sketch-types for unify the types format

Sketch Types

NPM version NPM downloads install size

david deps david devDeps


Community built set of typescript declarations for writing Sketch plugins.

Usage

First, install sketch-types

npm i sketch-types -D

or

yarn add sketch-types -D

Then you need to add the types directory to your tsconfig.json using the types option:

{
  "compilerOptions": {
    // ...
    "types": ["sketch-types", "cocoascript-types", "sketch-internal-types"]
  }
}

More types about sketch or macOS

If you just want sketch internal types or cocoascript types, please check these repo by yesmeck:

License

MIT