Notice: previous sketch-typings now rename to sketch-types for unify the types format
Community built set of typescript declarations for writing Sketch plugins.
First, install sketch-types
npm i sketch-types -Dor
pnpm i sketch-types -DThen you need to add the types directory to your tsconfig.json using the types option:
{
"compilerOptions": {
// ...
"types": ["sketch-types", "cocoascript-types", "sketch-internal-types"]
}
}If you just want sketch internal types or cocoascript types, please check these repo by yesmeck: