@candlerip/shared3 0.0.40 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@candlerip/shared3",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -7,8 +7,9 @@ export type AddInfo = (props: CustomError['info']) => void;
7
7
  export type ComposeCustomError = (message: CustomError['message'], info?: CustomError['info']) => {
8
8
  customError: CustomError;
9
9
  };
10
- export type GetInstance = (info: CustomError['info']) => {
10
+ export type GetInstance = (info: CustomError['info']) => CustomErrorWorkerInstance;
11
+ export type Init = (projectName: CustomError['projectName']) => void;
12
+ export type CustomErrorWorkerInstance = {
11
13
  addInfo: AddInfo;
12
14
  composeCustomError: ComposeCustomError;
13
15
  };
14
- export type Init = (projectName: CustomError['projectName']) => void;