@dompling/trollscript-types 1.0.27 → 1.0.31

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.
Files changed (2) hide show
  1. package/index.d.ts +0 -54
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -6,48 +6,41 @@ interface Console {
6
6
  /**
7
7
  * 输出日志信息
8
8
  * @param args 要输出的内容
9
- * @returns 无返回值
10
9
  */
11
10
  log(...args: any[]): void;
12
11
 
13
12
  /**
14
13
  * 输出错误信息
15
14
  * @param args 要输出的内容
16
- * @returns 无返回值
17
15
  */
18
16
  error(...args: any[]): void;
19
17
 
20
18
  /**
21
19
  * 输出警告信息
22
20
  * @param args 要输出的内容
23
- * @returns 无返回值
24
21
  */
25
22
  warn(...args: any[]): void;
26
23
 
27
24
  /**
28
25
  * 输出提示信息
29
26
  * @param args 要输出的内容
30
- * @returns 无返回值
31
27
  */
32
28
  info(...args: any[]): void;
33
29
 
34
30
  /**
35
31
  * 输出调试信息
36
32
  * @param args 要输出的内容
37
- * @returns 无返回值
38
33
  */
39
34
  debug(...args: any[]): void;
40
35
 
41
36
  /**
42
37
  * 以表格形式输出
43
38
  * @param data 要显示的表格数据
44
- * @returns 无返回值
45
39
  */
46
40
  table(data: any): void;
47
41
 
48
42
  /**
49
43
  * 清空控制台
50
- * @returns 无返回值
51
44
  */
52
45
  clear(): void;
53
46
 
@@ -88,13 +81,11 @@ interface Clipboard {
88
81
  /**
89
82
  * 设置剪贴板文本
90
83
  * @param text 要设置的文本内容
91
- * @returns 无返回值
92
84
  */
93
85
  setText(text: string): void;
94
86
 
95
87
  /**
96
88
  * 清空剪贴板
97
- * @returns 无返回值
98
89
  */
99
90
  clear(): void;
100
91
 
@@ -114,20 +105,17 @@ interface Storage {
114
105
  * 设置存储值
115
106
  * @param key 键名
116
107
  * @param value 要存储的值
117
- * @returns 无返回值
118
108
  */
119
109
  set(key: string, value: any): void;
120
110
 
121
111
  /**
122
112
  * 删除存储值
123
113
  * @param key 键名
124
- * @returns 无返回值
125
114
  */
126
115
  remove(key: string): void;
127
116
 
128
117
  /**
129
118
  * 清空所有存储
130
- * @returns 无返回值
131
119
  */
132
120
  clear(): void;
133
121
 
@@ -558,7 +546,6 @@ interface App {
558
546
 
559
547
  /**
560
548
  * 震动反馈
561
- * @returns 无返回值
562
549
  */
563
550
  vibrate(): void;
564
551
 
@@ -589,7 +576,6 @@ interface App {
589
576
 
590
577
  /**
591
578
  * 清除所有日志
592
- * @returns 无返回值
593
579
  */
594
580
  clearLogs(): void;
595
581
 
@@ -611,7 +597,6 @@ interface Ui {
611
597
  * 显示 Toast 提示
612
598
  * @param message 提示内容
613
599
  * @param duration 持续时间(秒)
614
- * @returns 无返回值
615
600
  */
616
601
  toast(message: string, duration: number): void;
617
602
 
@@ -647,13 +632,11 @@ interface Ui {
647
632
  /**
648
633
  * 显示加载指示器
649
634
  * @param message 加载提示
650
- * @returns 无返回值
651
635
  */
652
636
  showLoading(message: string): void;
653
637
 
654
638
  /**
655
639
  * 隐藏加载指示器
656
- * @returns 无返回值
657
640
  */
658
641
  hideLoading(): void;
659
642
 
@@ -665,62 +648,52 @@ interface Haptic {
665
648
  /**
666
649
  * 触觉冲击反馈
667
650
  * @param style 'light' | 'medium' | 'heavy' | 'soft' | 'rigid'
668
- * @returns 无返回值
669
651
  */
670
652
  impact(style: string): void;
671
653
 
672
654
  /**
673
655
  * 通知触觉反馈
674
656
  * @param type 'success' | 'warning' | 'error'
675
- * @returns 无返回值
676
657
  */
677
658
  notification(type: string): void;
678
659
 
679
660
  /**
680
661
  * 选择触觉反馈
681
- * @returns 无返回值
682
662
  */
683
663
  selection(): void;
684
664
 
685
665
  /**
686
666
  * 设备振动
687
- * @returns 无返回值
688
667
  */
689
668
  vibrate(): void;
690
669
 
691
670
  /**
692
671
  * 轻度冲击
693
- * @returns 无返回值
694
672
  */
695
673
  light(): void;
696
674
 
697
675
  /**
698
676
  * 中度冲击
699
- * @returns 无返回值
700
677
  */
701
678
  medium(): void;
702
679
 
703
680
  /**
704
681
  * 重度冲击
705
- * @returns 无返回值
706
682
  */
707
683
  heavy(): void;
708
684
 
709
685
  /**
710
686
  * 成功反馈
711
- * @returns 无返回值
712
687
  */
713
688
  success(): void;
714
689
 
715
690
  /**
716
691
  * 警告反馈
717
- * @returns 无返回值
718
692
  */
719
693
  warning(): void;
720
694
 
721
695
  /**
722
696
  * 错误反馈
723
- * @returns 无返回值
724
697
  */
725
698
  error(): void;
726
699
 
@@ -738,21 +711,18 @@ interface Display {
738
711
  /**
739
712
  * 设置屏幕亮度
740
713
  * @param value 亮度值 (0.0 - 1.0)
741
- * @returns 无返回值
742
714
  */
743
715
  setBrightness(value: number): void;
744
716
 
745
717
  /**
746
718
  * 增加亮度
747
719
  * @param amount 增加量 (默认 0.1)
748
- * @returns 无返回值
749
720
  */
750
721
  increaseBrightness(amount: number): void;
751
722
 
752
723
  /**
753
724
  * 降低亮度
754
725
  * @param amount 减少量 (默认 0.1)
755
- * @returns 无返回值
756
726
  */
757
727
  decreaseBrightness(amount: number): void;
758
728
 
@@ -873,7 +843,6 @@ declare const util: Util;
873
843
  interface Location {
874
844
  /**
875
845
  * 请求定位权限
876
- * @returns 无返回值
877
846
  */
878
847
  requestAccess(): void;
879
848
 
@@ -1343,13 +1312,11 @@ interface Notification {
1343
1312
  /**
1344
1313
  * 取消通知
1345
1314
  * @param id 通知 ID
1346
- * @returns 无返回值
1347
1315
  */
1348
1316
  cancel(id: string): void;
1349
1317
 
1350
1318
  /**
1351
1319
  * 取消所有通知
1352
- * @returns 无返回值
1353
1320
  */
1354
1321
  cancelAll(): void;
1355
1322
 
@@ -1380,7 +1347,6 @@ interface Notification {
1380
1347
  /**
1381
1348
  * 设置角标数字
1382
1349
  * @param count 角标数
1383
- * @returns 无返回值
1384
1350
  */
1385
1351
  setBadge(count: number): void;
1386
1352
 
@@ -1471,25 +1437,21 @@ interface Alarm {
1471
1437
  /**
1472
1438
  * 取消指定闹钟
1473
1439
  * @param id 闹钟 ID
1474
- * @returns 无返回值
1475
1440
  */
1476
1441
  cancel(id: string): void;
1477
1442
 
1478
1443
  /**
1479
1444
  * 取消所有闹钟
1480
- * @returns 无返回值
1481
1445
  */
1482
1446
  cancelAll(): void;
1483
1447
 
1484
1448
  /**
1485
1449
  * 打开系统时钟
1486
- * @returns 无返回值
1487
1450
  */
1488
1451
  openClockApp(): void;
1489
1452
 
1490
1453
  /**
1491
1454
  * 打开计时器
1492
- * @returns 无返回值
1493
1455
  */
1494
1456
  openTimer(): void;
1495
1457
 
@@ -1500,43 +1462,36 @@ declare const alarm: Alarm;
1500
1462
  interface Media {
1501
1463
  /**
1502
1464
  * 播放
1503
- * @returns 无返回值
1504
1465
  */
1505
1466
  play(): void;
1506
1467
 
1507
1468
  /**
1508
1469
  * 暂停
1509
- * @returns 无返回值
1510
1470
  */
1511
1471
  pause(): void;
1512
1472
 
1513
1473
  /**
1514
1474
  * 停止
1515
- * @returns 无返回值
1516
1475
  */
1517
1476
  stop(): void;
1518
1477
 
1519
1478
  /**
1520
1479
  * 切换播放/暂停
1521
- * @returns 无返回值
1522
1480
  */
1523
1481
  togglePlayPause(): void;
1524
1482
 
1525
1483
  /**
1526
1484
  * 下一首
1527
- * @returns 无返回值
1528
1485
  */
1529
1486
  next(): void;
1530
1487
 
1531
1488
  /**
1532
1489
  * 上一首
1533
- * @returns 无返回值
1534
1490
  */
1535
1491
  previous(): void;
1536
1492
 
1537
1493
  /**
1538
1494
  * 跳到开头
1539
- * @returns 无返回值
1540
1495
  */
1541
1496
  skipToBeginning(): void;
1542
1497
 
@@ -1567,7 +1522,6 @@ interface Media {
1567
1522
  /**
1568
1523
  * 设置音量
1569
1524
  * @param volume 音量 (0.0 - 1.0)
1570
- * @returns 无返回值
1571
1525
  */
1572
1526
  setVolume(volume: number): void;
1573
1527
 
@@ -1580,7 +1534,6 @@ interface Media {
1580
1534
  /**
1581
1535
  * 设置重复模式
1582
1536
  * @param mode 'none' | 'one' | 'all'
1583
- * @returns 无返回值
1584
1537
  */
1585
1538
  setRepeatMode(mode: string): void;
1586
1539
 
@@ -1593,7 +1546,6 @@ interface Media {
1593
1546
  /**
1594
1547
  * 设置随机播放模式
1595
1548
  * @param mode 'off' | 'songs' | 'albums'
1596
- * @returns 无返回值
1597
1549
  */
1598
1550
  setShuffleMode(mode: string): void;
1599
1551
 
@@ -1606,21 +1558,18 @@ interface Media {
1606
1558
  /**
1607
1559
  * 设置播放时间
1608
1560
  * @param time 时间 (秒)
1609
- * @returns 无返回值
1610
1561
  */
1611
1562
  setCurrentTime(time: number): void;
1612
1563
 
1613
1564
  /**
1614
1565
  * 快进
1615
1566
  * @param seconds 秒数 (默认 15)
1616
- * @returns 无返回值
1617
1567
  */
1618
1568
  seekForward(seconds: number): void;
1619
1569
 
1620
1570
  /**
1621
1571
  * 快退
1622
1572
  * @param seconds 秒数 (默认 15)
1623
- * @returns 无返回值
1624
1573
  */
1625
1574
  seekBackward(seconds: number): void;
1626
1575
 
@@ -1646,7 +1595,6 @@ interface Media {
1646
1595
  /**
1647
1596
  * 播放指定歌曲
1648
1597
  * @param persistentID 歌曲 ID
1649
- * @returns 无返回值
1650
1598
  */
1651
1599
  playSong(persistentID: string): void;
1652
1600
 
@@ -1677,14 +1625,12 @@ interface Media {
1677
1625
  /**
1678
1626
  * 播放专辑
1679
1627
  * @param id 专辑 ID
1680
- * @returns 无返回值
1681
1628
  */
1682
1629
  playAlbum(id: string): void;
1683
1630
 
1684
1631
  /**
1685
1632
  * 播放艺术家
1686
1633
  * @param id 艺术家 ID
1687
- * @returns 无返回值
1688
1634
  */
1689
1635
  playArtist(id: string): void;
1690
1636
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dompling/trollscript-types",
3
- "version": "1.0.27",
3
+ "version": "1.0.31",
4
4
  "description": "TypeScript definitions for TrollScript",
5
5
  "main": "",
6
6
  "types": "index.d.ts",