Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

sketch-types

sketch-community1.2kMIT1.4.5TypeScript support: included

Community built set of typescript declarations for writing Sketch plugins.

readme

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

changelog

Changelog

1.4.5 (2023-01-12)

🐛 Bug Fixes

  • 修正 SymbolInstance 的 parent 类型不准确的问题 (dbad29a)

1.4.4 (2023-01-12)

🎫 Chores

🐛 Bug Fixes

  • 修正SymbolInstance的resizeWithSmartLayout方法丢失的问题 (3965299)

1.4.3 (2021-11-07)

🐛 Bug Fixes

  • 修正 SketchFormat 的导出的类型定义 (4d95f91)

1.4.2 (2021-11-07)

🐛 Bug Fixes

  • 补充 sketch types 的默认导出 (62e8ddd)

1.4.1 (2021-11-07)

🐛 Bug Fixes

  • 修正 SketchFormat 没添加的问题 (97d2168)

1.4.0 (2021-11-07)

✨ Features

🎫 Chores

  • release: v1.3.2-beta.1 [skip ci] (5488540)
  • release: v1.3.4-beta.1 [skip ci] (e5bd112)
  • release: v1.3.4-beta.2 [skip ci] (bfc0a50)
  • release: v1.4.0-beta.1 [skip ci] (8b30699), closes #26
  • update package.json (05d7f98)

🐛 Bug Fixes

👷 Build System

  • refactor structure (dcc9970)
  • 重构类型定义文件结构 (e1289f4)

1.4.0-beta.1 (2021-11-07)

✨ Features

🐛 Bug Fixes

1.3.4-beta.2 (2021-11-07)

🐛 Bug Fixes

  • 尝试修复类型错误 (01d62b0)

1.3.4-beta.1 (2021-11-07)

🎫 Chores

  • release: v1.3.2-beta.1 [skip ci] (5488540)
  • update package.json (05d7f98)

👷 Build System

  • refactor structure (dcc9970)
  • 重构类型定义文件结构 (e1289f4)

1.3.2-beta.1 (2021-09-27)

👷 Build System

1.3.1 (2021-07-25)

🐛 Bug Fixes

1.3.0 (2021-07-19)

✨ Features

  • add createSymbolsPage method (5d1e7d0)

1.2.0 (2021-07-19)

✨ Features

  • add getSymbolsPage method (bcbcc29)

1.1.1 (2021-06-28)

🐛 Bug Fixes

1.1.0 (2021-06-28)

✨ Features

  • add swatches interface and method (1c5a66c)

1.0.0 (2021-06-12)

🐛 Bug Fixes

  • remove hotspot from child layer (cfcc882)

💥 BREAKING CHANGES

  • remove hotspot from GroupChildLayer

0.6.0 (2021-06-12)

✨ Features

  • add user-friendly named child layer (6d509ab)

0.5.1 (2021-06-12)

🐛 Bug Fixes

  • fix the ChildLayer type (22d0626)

0.5.0 (2021-06-12)

✨ Features

  • add ToExportLayerType type (3b8ff10)

🎫 Chores

🐛 Bug Fixes

📝 Documentation

🔧 Continuous Integration