@esportsplus/ui 0.0.64 → 0.0.65
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.
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { Response } from '@esportsplus/action';
|
|
2
|
-
|
|
1
|
+
import { response, Response } from '@esportsplus/action';
|
|
2
|
+
import alert from '../../components/alert';
|
|
3
|
+
type Action = (data: Payload) => Promise<Errors> | Errors;
|
|
3
4
|
type Errors = {
|
|
4
5
|
errors: Response<unknown>['errors'];
|
|
5
6
|
};
|
|
6
|
-
|
|
7
|
+
type Payload = {
|
|
8
|
+
alert: typeof alert;
|
|
9
|
+
input: Record<string, any>;
|
|
10
|
+
response: typeof response;
|
|
11
|
+
};
|
|
12
|
+
export { Action, Errors, Payload };
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import { Response } from '@esportsplus/action';
|
|
1
|
+
import { response, Response } from '@esportsplus/action';
|
|
2
|
+
import alert from '~/components/alert';
|
|
2
3
|
|
|
3
4
|
|
|
4
|
-
type Action =
|
|
5
|
+
type Action = (data: Payload) => Promise<Errors> | Errors;
|
|
5
6
|
|
|
6
7
|
type Errors = { errors: Response<unknown>['errors'] };
|
|
7
8
|
|
|
9
|
+
type Payload = {
|
|
10
|
+
alert: typeof alert;
|
|
11
|
+
input: Record<string, any>;
|
|
12
|
+
response: typeof response;
|
|
13
|
+
};
|
|
8
14
|
|
|
9
|
-
|
|
15
|
+
|
|
16
|
+
export { Action, Errors, Payload };
|