@pyreon/attrs 0.1.0 → 0.1.2

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/index.d.ts +4 -4
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -73,7 +73,7 @@ type ComposeParam = Record<string, GenericHoc | null | undefined | false>;
73
73
  * @param HOC High-order components
74
74
  * @param DFP Calculated final component props
75
75
  */
76
- interface AttrsComponent<C extends ElementType = ElementType, OA extends TObj = TObj, EA extends TObj = TObj, S extends TObj = TObj, HOC extends TObj = TObj, DFP extends Record<string, any> = MergeTypes<[OA, EA]>> {
76
+ interface AttrsComponent<C extends ElementType = ElementType, OA extends TObj = {}, EA extends TObj = {}, S extends TObj = {}, HOC extends TObj = {}, DFP extends Record<string, any> = MergeTypes<[OA, EA]>> {
77
77
  (props: DFP): VNode | null;
78
78
  config: <NC extends ElementType | unknown = unknown>({
79
79
  name,
@@ -123,9 +123,9 @@ type Configuration<C = ElementType | unknown> = InitConfiguration<C> & {
123
123
  * with all extension slots (EA, S, HOC) starting empty.
124
124
  */
125
125
  type InitAttrsComponent<C extends ElementType = ElementType> = (params: Configuration<C>) => AttrsComponent<C, ExtractProps<C>, // OA — original component props
126
- TObj, // EA — extended props (empty initially)
127
- TObj, // S — statics (empty initially)
128
- TObj>;
126
+ {}, // EA — extended props (empty initially)
127
+ {}, // S — statics (empty initially)
128
+ {}>;
129
129
  //#endregion
130
130
  //#region src/init.d.ts
131
131
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pyreon/attrs",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/pyreon/ui-system",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@pyreon/core": ">=0.4.0 <1.0.0",
45
- "@pyreon/ui-core": "^0.1.0"
45
+ "@pyreon/ui-core": ">=0.1.2"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@vitus-labs/tools-rolldown": "^1.15.3",