@whitesev/domutils 1.0.0

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/src/Data.ts ADDED
@@ -0,0 +1,9 @@
1
+ /* 数据 */
2
+ const DOMUtilsData = {
3
+ /** .on绑定的事件 */
4
+ SymbolEvents: Symbol(
5
+ "events_" + (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
6
+ ),
7
+ };
8
+
9
+ export { DOMUtilsData };
@@ -0,0 +1,7 @@
1
+ const OriginPrototype = {
2
+ Object: {
3
+ defineProperty: Object.defineProperty,
4
+ },
5
+ };
6
+
7
+ export { OriginPrototype };
package/tsconfig.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "compilerOptions": {
3
+ // es最新版
4
+ "target": "ESNext",
5
+ // 运行环境: es6、浏览器
6
+ "lib": ["ESNext", "DOM"],
7
+ "allowJs": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ "module": "ESNext",
10
+ "moduleResolution": "Node",
11
+ //"module": "AMD",
12
+ //"moduleResolution": "Bundler",
13
+ //"resolveJsonModule": true,
14
+ // 启用严格模式
15
+ "strict": true,
16
+ "strictNullChecks": true,
17
+ "esModuleInterop": true,
18
+ // 跳过默认库检查
19
+ "skipDefaultLibCheck": true,
20
+ // 跳过库检查
21
+ "skipLibCheck": true,
22
+ // 输出目录
23
+ "outDir": "./dist",
24
+ // 输出.d.ts声明文件
25
+ "declaration": true,
26
+ "sourceMap": true,
27
+ "types": ["./global.d.ts"]
28
+ },
29
+ // 包含src下的所有文件
30
+ "include": ["src/**/*", "index.ts"]
31
+ }