@faasjs/react 3.2.0 → 3.2.1

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/dist/index.d.mts CHANGED
@@ -159,7 +159,7 @@ declare namespace FaasDataWrapper {
159
159
  * const MyComponent = withFaasData(({ data }) => <div>{data.name}</div>, { action: 'test', params: { a: 1 } })
160
160
  * ```
161
161
  */
162
- declare function withFaasData<PathOrData extends FaasAction, TComponentProps extends FaasDataInjection<PathOrData> = FaasDataInjection<PathOrData>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>> & Record<string, any>>;
162
+ declare function withFaasData<PathOrData extends FaasAction, TComponentProps extends Required<FaasDataInjection<PathOrData>> = Required<FaasDataInjection<PathOrData>>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>> & Record<string, any>>;
163
163
 
164
164
  type useFaasOptions<PathOrData extends FaasAction> = {
165
165
  params?: FaasParams<PathOrData>;
package/dist/index.d.ts CHANGED
@@ -159,7 +159,7 @@ declare namespace FaasDataWrapper {
159
159
  * const MyComponent = withFaasData(({ data }) => <div>{data.name}</div>, { action: 'test', params: { a: 1 } })
160
160
  * ```
161
161
  */
162
- declare function withFaasData<PathOrData extends FaasAction, TComponentProps extends FaasDataInjection<PathOrData> = FaasDataInjection<PathOrData>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>> & Record<string, any>>;
162
+ declare function withFaasData<PathOrData extends FaasAction, TComponentProps extends Required<FaasDataInjection<PathOrData>> = Required<FaasDataInjection<PathOrData>>>(Component: React.FC<TComponentProps & Record<string, any>>, faasProps: FaasDataWrapperProps<PathOrData>): React.FC<Omit<TComponentProps, keyof FaasDataInjection<PathOrData>> & Record<string, any>>;
163
163
 
164
164
  type useFaasOptions<PathOrData extends FaasAction> = {
165
165
  params?: FaasParams<PathOrData>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/react",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,15 +33,14 @@
33
33
  "files": [
34
34
  "dist"
35
35
  ],
36
- "dependencies": {
37
- "@faasjs/browser": "3.2.0"
38
- },
39
36
  "peerDependencies": {
40
- "react": "*"
37
+ "react": "*",
38
+ "@faasjs/browser": "3.2.1"
41
39
  },
42
40
  "devDependencies": {
43
41
  "@types/react": "*",
44
- "react": "*"
42
+ "react": "*",
43
+ "@faasjs/browser": "3.2.1"
45
44
  },
46
45
  "engines": {
47
46
  "node": ">=22.0.0",