ph-utils 0.12.0 → 0.12.1

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/lib/dom.d.ts +2 -2
  2. package/package.json +1 -1
package/lib/dom.d.ts CHANGED
@@ -25,14 +25,14 @@ export declare function $(selector: string | HTMLElement, dom?: DocumentContext)
25
25
  * @param ctx - 元素的父级文档上下文。
26
26
  * @returns 创建的 HTML 元素。
27
27
  */
28
- export declare function create(tag: string, option: {
28
+ export declare function create(tag: string, option?: {
29
29
  class?: FormatClassParam;
30
30
  style?: FormatStyleParam;
31
31
  textContent?: string;
32
32
  innerHTML?: string;
33
33
  outerHTML?: string;
34
34
  [index: string]: any;
35
- } | undefined, ctx: DocumentContext): HTMLElement;
35
+ }, ctx?: DocumentContext): HTMLElement;
36
36
  /**
37
37
  * 根据选择器获取匹配的第一个 DOM 元素。
38
38
  * @param selector - 选择器字符串或直接的 HTMLElement。
package/package.json CHANGED
@@ -68,7 +68,7 @@
68
68
  },
69
69
  "./*": "./lib/*"
70
70
  },
71
- "version": "0.12.0",
71
+ "version": "0.12.1",
72
72
  "type": "module",
73
73
  "repository": {
74
74
  "type": "git",