@pyreon/attrs 0.2.0 → 0.3.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/lib/index.d.ts +2 -2
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -80,9 +80,9 @@ interface AttrsComponent<C extends ElementType = ElementType, OA extends TObj =
|
|
|
80
80
|
component: NC,
|
|
81
81
|
DEBUG
|
|
82
82
|
}: ConfigAttrs<NC>) => NC extends ElementType ? AttrsComponent<NC, ExtractProps<NC>, EA, S, HOC> : AttrsComponent<C, OA, EA, S, HOC>;
|
|
83
|
-
attrs: <P extends TObj | unknown = unknown>(param: P extends TObj ? Partial<
|
|
83
|
+
attrs: <P extends TObj | unknown = unknown>(param: P extends TObj ? Partial<DFP & P> | AttrsCb<DFP & P> : Partial<DFP> | AttrsCb<DFP>, config?: Partial<{
|
|
84
84
|
priority: boolean;
|
|
85
|
-
filter: unknown extends P ? string[] : (keyof
|
|
85
|
+
filter: unknown extends P ? string[] : (keyof (EA & P))[];
|
|
86
86
|
}>) => P extends TObj ? AttrsComponent<C, OA, MergeTypes<[EA, P]>, S, HOC> : AttrsComponent<C, OA, EA, S, HOC>;
|
|
87
87
|
compose: <P extends ComposeParam>(param: P) => P extends TObj ? AttrsComponent<C, OA, EA, S, MergeTypes<[HOC, P]>> : AttrsComponent<C, OA, EA, S, HOC>;
|
|
88
88
|
statics: <P extends TObj | unknown = unknown>(param: P) => P extends TObj ? AttrsComponent<C, OA, EA, MergeTypes<[S, P]>, HOC> : AttrsComponent<C, OA, EA, S, HOC>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/attrs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/pyreon/ui-system",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@pyreon/core": ">=0.4.0 <1.0.0",
|
|
45
|
-
"@pyreon/ui-core": ">=0.
|
|
45
|
+
"@pyreon/ui-core": ">=0.3.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@vitus-labs/tools-rolldown": "^1.15.3",
|
|
49
|
-
"@
|
|
49
|
+
"@pyreon/typescript": "^0.7.4"
|
|
50
50
|
}
|
|
51
51
|
}
|