@zayne-labs/toolkit-react 0.8.38 → 0.8.39

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.
@@ -58,6 +58,6 @@ type AsProp<TElement extends React.ElementType> = {
58
58
  };
59
59
  type InferRestOfProps<TElement extends React.ElementType, TProps> = Omit<React.ComponentPropsWithRef<TElement>, keyof TProps>;
60
60
  type MergedPropsWithAs<TElement extends React.ElementType, TProps> = Omit<AsProp<TElement>, keyof TProps> & TProps;
61
- type PolymorphicProps<TElement extends React.ElementType, TProps extends Record<keyof any, any>> = InferRestOfProps<TElement, TProps> & Prettify<MergedPropsWithAs<TElement, TProps>>;
61
+ type PolymorphicProps<TElement extends React.ElementType, TProps extends Record<keyof any, any> = NonNullable<unknown>> = InferRestOfProps<TElement, TProps> & Prettify<MergedPropsWithAs<TElement, TProps>>;
62
62
 
63
63
  export { type AsProp, type DiscriminatedRenderProps, type ForwardedRefType, type InferProps, type MyCustomCss, type PolymorphicProps, type StateSetter, composeRefs, getOtherChildren, getSlotElement, isSlotElement, mergeProps, mergeTwoProps, setRef };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zayne-labs/toolkit-react",
3
3
  "type": "module",
4
- "version": "0.8.38",
4
+ "version": "0.8.39",
5
5
  "description": "A collection of utility functions, types and composables used by my other projects. Nothing too fancy but can be useful.",
6
6
  "author": "Ryan Zayne",
7
7
  "license": "MIT",
@@ -50,8 +50,8 @@
50
50
  }
51
51
  },
52
52
  "dependencies": {
53
- "@zayne-labs/toolkit-core": "0.8.38",
54
- "@zayne-labs/toolkit-type-helpers": "0.8.38"
53
+ "@zayne-labs/toolkit-core": "0.8.39",
54
+ "@zayne-labs/toolkit-type-helpers": "0.8.39"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@arethetypeswrong/cli": "^0.17.3",