esoftplay 0.0.128-t → 0.0.128-u
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/bin/router.js +2 -2
- package/package.json +1 -1
- package/subscribe.ts +2 -2
package/bin/router.js
CHANGED
|
@@ -461,7 +461,7 @@ declare module "esoftplay" {
|
|
|
461
461
|
render: (props: T) => any,
|
|
462
462
|
}`;
|
|
463
463
|
for (clsName in tmpTask) {
|
|
464
|
-
let ItemText = ""
|
|
464
|
+
let ItemText = "\nimport { useGlobalSubscribeReturn } from 'esoftplay';\n"
|
|
465
465
|
if (clsName == "LibIcon") {
|
|
466
466
|
ItemText += "import { EvilIconsTypes, AntDesignTypes, EvilIconsTypes, FeatherTypes, FontAwesomeTypes, FontistoTypes, FoundationTypes, MaterialIconsTypes, EntypoTypes, OcticonsTypes, ZocialTypes, SimpleLineIconsTypes, IoniconsTypes, MaterialCommunityIconsTypes } from '@expo/vector-icons/build/esoftplay_icons';\n"
|
|
467
467
|
}
|
|
@@ -475,7 +475,7 @@ declare module "esoftplay" {
|
|
|
475
475
|
if (clsName !== "LibComponent")
|
|
476
476
|
ItemText += "import { LibComponent } from 'esoftplay/cache/lib/component/import';\nimport { LibNavigationRoutes, useGlobalReturn } from 'esoftplay';\n"
|
|
477
477
|
else if (clsName === "LibComponent") {
|
|
478
|
-
ItemText += "import { Component } from 'react';\
|
|
478
|
+
ItemText += "import { Component } from 'react';\n"
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
// ItemText += "\n";
|
package/package.json
CHANGED
package/subscribe.ts
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface useGlobalSubscriberReturn {
|
|
6
6
|
getValue: (value?: any) => void,
|
|
7
7
|
reset: () => void,
|
|
8
8
|
useSubscribe: Function,
|
|
9
9
|
trigger: (newValue?: any) => void
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export default function useGlobalSubscriber(defaultValue?: any):
|
|
12
|
+
export default function useGlobalSubscriber(defaultValue?: any): useGlobalSubscriberReturn {
|
|
13
13
|
const subscribers = new Set<Function>();
|
|
14
14
|
let value = defaultValue;
|
|
15
15
|
|