@destyler/types 0.0.7-beta.9 → 0.2.0-beta.4
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.
|
@@ -1375,8 +1375,8 @@ interface IntrinsicElements {
|
|
|
1375
1375
|
}
|
|
1376
1376
|
//#endregion
|
|
1377
1377
|
//#region src/create-props.d.ts
|
|
1378
|
-
type StrictKeys<K extends (keyof T)[], T> = K extends (keyof T)[] ? [keyof T] extends [K[number]] ? unknown : `Missing required keys: ${Exclude<keyof T, K[number]>}` : never;
|
|
1379
|
-
declare function createProps<T extends Record<never, never>>(): <K extends (keyof T)[]>(props: K & StrictKeys<K, T>) => (keyof T)[];
|
|
1378
|
+
type StrictKeys<K$1 extends (keyof T)[], T> = K$1 extends (keyof T)[] ? [keyof T] extends [K$1[number]] ? unknown : `Missing required keys: ${Exclude<keyof T, K$1[number]>}` : never;
|
|
1379
|
+
declare function createProps<T extends Record<never, never>>(): <K$1 extends (keyof T)[]>(props: K$1 & StrictKeys<K$1, T>) => (keyof T)[];
|
|
1380
1380
|
//#endregion
|
|
1381
1381
|
//#region src/prop-types.d.ts
|
|
1382
1382
|
type Dict<T = any> = Record<string, T>;
|
|
@@ -1425,7 +1425,7 @@ type NormalizeProps<T extends PropTypes> = { [K in keyof T]: (props: K extends k
|
|
|
1425
1425
|
declare function createNormalizer<T extends PropTypes>(fn: (props: Dict) => Dict): NormalizeProps<T>;
|
|
1426
1426
|
//#endregion
|
|
1427
1427
|
//#region index.d.ts
|
|
1428
|
-
type RequiredBy<T, K extends keyof T> = Partial<Omit<T, K>> & Required<Pick<T, K>>;
|
|
1428
|
+
type RequiredBy<T, K$1 extends keyof T> = Partial<Omit<T, K$1>> & Required<Pick<T, K$1>>;
|
|
1429
1429
|
type Nullable<T> = T | null;
|
|
1430
1430
|
type NonNullable<T> = T extends null | undefined ? never : T;
|
|
1431
1431
|
type Required<T> = { [P in keyof T]-?: NonNullable<T[P]> };
|
package/package.json
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "0.2.0-beta.4",
|
|
5
5
|
"description": "a minimal implementation of types for UI machines",
|
|
6
6
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/destyler/destyler",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/destyler/destyler.git",
|
|
12
|
+
"directory": "packages/types"
|
|
13
|
+
},
|
|
8
14
|
"exports": {
|
|
9
|
-
".": "./dist/index.
|
|
15
|
+
".": "./dist/index.mjs"
|
|
10
16
|
},
|
|
11
|
-
"main": "dist/index.
|
|
12
|
-
"module": "dist/index.
|
|
13
|
-
"types": "dist/index.d.
|
|
17
|
+
"main": "dist/index.mjs",
|
|
18
|
+
"module": "dist/index.mjs",
|
|
19
|
+
"types": "dist/index.d.mts",
|
|
14
20
|
"files": [
|
|
15
21
|
"*.d.ts",
|
|
16
22
|
"dist"
|
|
17
23
|
],
|
|
18
24
|
"dependencies": {
|
|
19
|
-
"csstype": "^3.
|
|
20
|
-
"@destyler/store": "0.0
|
|
21
|
-
"@destyler/utils": "0.0
|
|
25
|
+
"csstype": "^3.2.3",
|
|
26
|
+
"@destyler/store": "0.2.0-beta.4",
|
|
27
|
+
"@destyler/utils": "0.2.0-beta.4"
|
|
28
|
+
},
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"access": "public"
|
|
22
31
|
},
|
|
23
32
|
"scripts": {
|
|
24
33
|
"clear": "rimraf ./dist",
|
|
File without changes
|