@destyler/types 0.0.7-beta.9
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/LICENSE +21 -0
- package/dist/index.d.ts +1475 -0
- package/dist/index.js +15 -0
- package/package.json +29 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/create-props.ts
|
|
2
|
+
function createProps() {
|
|
3
|
+
return (props) => Array.from(new Set(props));
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/prop-types.ts
|
|
8
|
+
function createNormalizer(fn) {
|
|
9
|
+
return new Proxy({}, { get() {
|
|
10
|
+
return fn;
|
|
11
|
+
} });
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { createNormalizer, createProps };
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@destyler/types",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.7-beta.9",
|
|
5
|
+
"description": "a minimal implementation of types for UI machines",
|
|
6
|
+
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"module": "dist/index.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"files": [
|
|
15
|
+
"*.d.ts",
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"csstype": "^3.1.3",
|
|
20
|
+
"@destyler/store": "0.0.7-beta.9",
|
|
21
|
+
"@destyler/utils": "0.0.7-beta.9"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"clear": "rimraf ./dist",
|
|
25
|
+
"clear:node_modules": "rimraf ./node_modules",
|
|
26
|
+
"build": "pnpm run clear && tsdown",
|
|
27
|
+
"watch": "tsdown --watch"
|
|
28
|
+
}
|
|
29
|
+
}
|