forked from sketch-hq/SketchAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsketch-internals.d.ts
37 lines (33 loc) · 912 Bytes
/
sketch-internals.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/// <reference path="./Foundation.d.ts" />
declare const MSApplicationMetadata: {
metadata: () => {
appVersion: number
}
}
interface IMSDataSupplierManager {
registerPluginDataSupplier_withName_dataType_pluginIdentifier_commandIdentifier: (
dynamicDataKey: INSString | string,
dataName: INSString | string,
dataType: 'public.text' | 'public.image',
identifier: INSString,
commandIdentifier: INSString
) => void
deregisterDataSuppliersForPluginWithIdentifier: (
identifier: INSString
) => void
supplyData_forKey: (
data: Array<INSString | string>,
key: INSString | string
) => void
supplyData_atIndex_forKey: (
data: INSString | string,
index: number,
key: INSString | string
) => void
}
interface IAppController {
dataSupplierManager: () => IMSDataSupplierManager
}
declare const AppController: {
sharedInstance: () => IAppController
}