@dompling/trollscript-types 1.0.44 → 1.0.46

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 -116
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -583,67 +583,6 @@ interface App {
583
583
 
584
584
  declare const app: App;
585
585
 
586
- interface Ui {
587
- /**
588
- * 显示提示框
589
- * @param title 标题
590
- * @param message 内容
591
- * @param buttonTitle 按钮文字
592
- * @returns 无返回值
593
- */
594
- alert(title: string, message: string, buttonTitle: string): any;
595
-
596
- /**
597
- * 显示 Toast 提示
598
- * @param message 提示内容
599
- * @param duration 持续时间(秒)
600
- */
601
- toast(message: string, duration: number): void;
602
-
603
- /**
604
- * 显示确认对话框
605
- * @param title 标题
606
- * @param message 内容
607
- * @param confirmTitle 确认按钮文字
608
- * @param cancelTitle 取消按钮文字
609
- * @returns 是否点击了确认
610
- */
611
- confirm(title: string, message: string, confirmTitle: string, cancelTitle: string): any;
612
-
613
- /**
614
- * 显示输入对话框
615
- * @param title 标题
616
- * @param message 内容
617
- * @param defaultValue 默认值
618
- * @param placeholder 占位符
619
- * @returns 输入的文本,取消返回 null
620
- */
621
- prompt(title: string, message: string, defaultValue: string, placeholder: string): any;
622
-
623
- /**
624
- * 显示操作表单
625
- * @param title 标题
626
- * @param message 内容
627
- * @param actions 选项列表
628
- * @returns 选择的按钮索引(从0开始)
629
- */
630
- actionSheet(title: string, message: string, actions: any): any;
631
-
632
- /**
633
- * 显示加载指示器
634
- * @param message 加载提示
635
- */
636
- showLoading(message: string): void;
637
-
638
- /**
639
- * 隐藏加载指示器
640
- */
641
- hideLoading(): void;
642
-
643
- }
644
-
645
- declare const ui: Ui;
646
-
647
586
  interface Haptic {
648
587
  /**
649
588
  * 触觉冲击反馈
@@ -1851,61 +1790,6 @@ interface Bluetooth {
1851
1790
 
1852
1791
  declare const bluetooth: Bluetooth;
1853
1792
 
1854
- interface Webview {
1855
- /**
1856
- * 打开网页并等待加载
1857
- * @param url 网页 URL
1858
- */
1859
- open(url: string): any;
1860
-
1861
- /**
1862
- * 加载 HTML 内容
1863
- * @param html HTML 字符串
1864
- * @param baseURL 基础 URL
1865
- */
1866
- loadHTML(html: string, baseURL: string): any;
1867
-
1868
- /**
1869
- * 执行页面内 JavaScript
1870
- * @param script JS 代码
1871
- */
1872
- evaluate(script: string): any;
1873
-
1874
- /**
1875
- * 获取页面标题
1876
- */
1877
- getTitle(): any;
1878
-
1879
- /**
1880
- * 获取当前 URL
1881
- */
1882
- getURL(): any;
1883
-
1884
- /**
1885
- * 获取页面 HTML 源码
1886
- */
1887
- getHTML(): any;
1888
-
1889
- /**
1890
- * 关闭网页视图
1891
- * @returns 无返回值
1892
- */
1893
- close(): void;
1894
-
1895
- /**
1896
- * 检查是否已打开
1897
- */
1898
- isOpen(): boolean;
1899
-
1900
- /**
1901
- * 截取页面截图
1902
- */
1903
- screenshot(): any;
1904
-
1905
- }
1906
-
1907
- declare const webview: Webview;
1908
-
1909
1793
  interface Memo {
1910
1794
  /**
1911
1795
  * 创建备忘录
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dompling/trollscript-types",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
4
4
  "description": "TypeScript definitions for TrollScript",
5
5
  "main": "",
6
6
  "types": "index.d.ts",