Community built set of typescript declarations for writing Sketch plugins.


Keywords
sketch, typescript, typescript-definitions, typings
License
MIT
Install
npm install sketch-types@1.4.5

Documentation

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

Sketch Types

NPM version NPM downloads install size


Community built set of typescript declarations for writing Sketch plugins.

Usage

First, install sketch-types

npm i sketch-types -D

or

pnpm i 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