ms-types 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/types/global.d.ts
CHANGED
package/types/hid.d.ts
CHANGED
|
@@ -266,4 +266,17 @@ declare namespace hid {
|
|
|
266
266
|
*/
|
|
267
267
|
bundleId: string;
|
|
268
268
|
} | null;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* 设置剪切板内容
|
|
272
|
+
* @param text 要设置的文本
|
|
273
|
+
* @returns 设置结果
|
|
274
|
+
*/
|
|
275
|
+
function setClipboard(text: string): boolean;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* 获取剪切板内容
|
|
279
|
+
* @returns 剪切板内容
|
|
280
|
+
*/
|
|
281
|
+
function getClipboard(): string | null;
|
|
269
282
|
}
|
|
@@ -270,4 +270,17 @@ declare namespace $HID {
|
|
|
270
270
|
*/
|
|
271
271
|
bundleId: 字符串;
|
|
272
272
|
} | null;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* 设置剪切板内容
|
|
276
|
+
* @param text 要设置的文本
|
|
277
|
+
* @returns 设置结果
|
|
278
|
+
*/
|
|
279
|
+
function 设置剪切板内容(text: 字符串): 布尔值;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* 获取剪切板内容
|
|
283
|
+
* @returns 剪切板内容
|
|
284
|
+
*/
|
|
285
|
+
function 获取剪切板内容(): 字符串 | null;
|
|
273
286
|
}
|