@wooksjs/event-cli 0.4.29 → 0.4.31
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.ts +4 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -231,6 +231,8 @@ declare function createCliContext(data: Omit<TCliEventData, 'type'>, options: TE
|
|
|
231
231
|
};
|
|
232
232
|
getStore: <K_1 extends "flags" | keyof _wooksjs_event_core.TGenericContextStore<TCliEventData>>(key: K_1) => (TCliContextStore & _wooksjs_event_core.TGenericContextStore<TCliEventData>)[K_1];
|
|
233
233
|
setStore: <K_2 extends "flags" | keyof _wooksjs_event_core.TGenericContextStore<TCliEventData>>(key: K_2, v: (TCliContextStore & _wooksjs_event_core.TGenericContextStore<TCliEventData>)[K_2]) => void;
|
|
234
|
+
setParentCtx: (parentCtx: unknown) => void;
|
|
235
|
+
restoreParentCtx: () => _wooksjs_event_core.TGenericContextStore<TEmpty> | null;
|
|
234
236
|
};
|
|
235
237
|
/**
|
|
236
238
|
* Wrapper on top of useEventContext that provides
|
|
@@ -257,6 +259,8 @@ declare function useCliContext<T extends TEmpty>(): {
|
|
|
257
259
|
};
|
|
258
260
|
getStore: <K_1 extends "flags" | keyof _wooksjs_event_core.TGenericContextStore<TCliEventData> | keyof T>(key: K_1) => (TCliContextStore & T & _wooksjs_event_core.TGenericContextStore<TCliEventData>)[K_1];
|
|
259
261
|
setStore: <K_2 extends "flags" | keyof _wooksjs_event_core.TGenericContextStore<TCliEventData> | keyof T>(key: K_2, v: (TCliContextStore & T & _wooksjs_event_core.TGenericContextStore<TCliEventData>)[K_2]) => void;
|
|
262
|
+
setParentCtx: (parentCtx: unknown) => void;
|
|
263
|
+
restoreParentCtx: () => _wooksjs_event_core.TGenericContextStore<TEmpty> | null;
|
|
260
264
|
};
|
|
261
265
|
|
|
262
266
|
export { type TCliContextStore, type TCliEventData, type TCliHelpCustom, type TCliHelpRenderer, type TWooksCliEntry, type TWooksCliOptions, WooksCli, cliShortcuts, createCliApp, createCliContext, useAutoHelp, useCliContext, useCliHelp, useCliOption, useCliOptions, useCommandLookupHelp };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wooksjs/event-cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.31",
|
|
4
4
|
"description": "@wooksjs/event-cli",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"url": "https://github.com/wooksjs/wooksjs/issues"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"wooks": "0.4.
|
|
43
|
-
"@wooksjs/event-core": "0.4.
|
|
42
|
+
"wooks": "0.4.31",
|
|
43
|
+
"@wooksjs/event-core": "0.4.31"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"minimist": "^1.2.6",
|