@h3ravel/shared 0.23.0 → 0.23.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.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4,8 +4,8 @@ import { Edge } from "edge.js";
|
|
|
4
4
|
import { ResponseHeaderMap, TypedHeaders } from "fetchdts";
|
|
5
5
|
import { DotNestedKeys as DotNestedKeys$1, DotNestedValue as DotNestedValue$1 } from "@h3ravel/shared";
|
|
6
6
|
import { Separator } from "@inquirer/prompts";
|
|
7
|
+
import { ChoiceOrSeparatorArray, ChoiceOrSeparatorArray as ChoiceOrSeparatorArray$1 } from "inquirer-autocomplete-standalone";
|
|
7
8
|
import { ChalkInstance } from "chalk";
|
|
8
|
-
import { ChoiceOrSeparatorArray } from "inquirer-autocomplete-standalone";
|
|
9
9
|
|
|
10
10
|
//#region src/Contracts/ObjContract.d.ts
|
|
11
11
|
/**
|
|
@@ -442,6 +442,7 @@ type Choice<Value> = {
|
|
|
442
442
|
disabled?: boolean | string;
|
|
443
443
|
type?: never;
|
|
444
444
|
};
|
|
445
|
+
type ISeparator = Separator;
|
|
445
446
|
type Choices = readonly (string | Separator)[] | readonly (Separator | Choice<string>)[];
|
|
446
447
|
//#endregion
|
|
447
448
|
//#region src/Contracts/Router.d.ts
|
|
@@ -702,7 +703,7 @@ declare class Prompts extends Logger {
|
|
|
702
703
|
/**
|
|
703
704
|
* The source of completions
|
|
704
705
|
*/
|
|
705
|
-
source: string[] | ((input?: string | undefined) => Promise<ChoiceOrSeparatorArray<any>>),
|
|
706
|
+
source: string[] | ((input?: string | undefined) => Promise<ChoiceOrSeparatorArray$1<any>>),
|
|
706
707
|
/**
|
|
707
708
|
* Set a default value
|
|
708
709
|
*/
|
|
@@ -769,4 +770,4 @@ declare class TaskManager {
|
|
|
769
770
|
static advancedTaskRunner<R = any>(info: [[string, string], [string, string]] | [[string, string]], task: (() => Promise<R>) | (() => R)): Promise<R | undefined>;
|
|
770
771
|
}
|
|
771
772
|
//#endregion
|
|
772
|
-
export { Bindings, Choice, Choices, DotFlatten, DotNestedKeys, DotNestedValue, EnvParser, EventHandler, ExtractControllerMethods, FileSystem, GenericWithNullableStringValues, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IRequest, IResponse, IRouter, IServiceProvider, Logger, LoggerChalk, LoggerLog, LoggerParseSignature, PathLoader, Prompts, Resolver, RouteDefinition, RouteEventHandler, RouteMethod, RouterEnd, TaskManager, UseKey, baseTsconfig, mainTsconfig, packageJsonScript };
|
|
773
|
+
export { Bindings, Choice, type ChoiceOrSeparatorArray, Choices, DotFlatten, DotNestedKeys, DotNestedValue, EnvParser, EventHandler, ExtractControllerMethods, FileSystem, GenericWithNullableStringValues, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IRequest, IResponse, IRouter, ISeparator, IServiceProvider, Logger, LoggerChalk, LoggerLog, LoggerParseSignature, PathLoader, Prompts, Resolver, RouteDefinition, RouteEventHandler, RouteMethod, RouterEnd, TaskManager, UseKey, baseTsconfig, mainTsconfig, packageJsonScript };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="./app.globals.d.ts" />
|
|
2
2
|
import { ChalkInstance } from "chalk";
|
|
3
|
-
import { ChoiceOrSeparatorArray } from "inquirer-autocomplete-standalone";
|
|
3
|
+
import { ChoiceOrSeparatorArray, ChoiceOrSeparatorArray as ChoiceOrSeparatorArray$1 } from "inquirer-autocomplete-standalone";
|
|
4
4
|
import { Separator } from "@inquirer/prompts";
|
|
5
5
|
import { H3, H3Event, Middleware, MiddlewareOptions, serve } from "h3";
|
|
6
6
|
import { Edge } from "edge.js";
|
|
@@ -442,6 +442,7 @@ type Choice<Value> = {
|
|
|
442
442
|
disabled?: boolean | string;
|
|
443
443
|
type?: never;
|
|
444
444
|
};
|
|
445
|
+
type ISeparator = Separator;
|
|
445
446
|
type Choices = readonly (string | Separator)[] | readonly (Separator | Choice<string>)[];
|
|
446
447
|
//#endregion
|
|
447
448
|
//#region src/Contracts/Router.d.ts
|
|
@@ -702,7 +703,7 @@ declare class Prompts extends Logger {
|
|
|
702
703
|
/**
|
|
703
704
|
* The source of completions
|
|
704
705
|
*/
|
|
705
|
-
source: string[] | ((input?: string | undefined) => Promise<ChoiceOrSeparatorArray<any>>),
|
|
706
|
+
source: string[] | ((input?: string | undefined) => Promise<ChoiceOrSeparatorArray$1<any>>),
|
|
706
707
|
/**
|
|
707
708
|
* Set a default value
|
|
708
709
|
*/
|
|
@@ -769,4 +770,4 @@ declare class TaskManager {
|
|
|
769
770
|
static advancedTaskRunner<R = any>(info: [[string, string], [string, string]] | [[string, string]], task: (() => Promise<R>) | (() => R)): Promise<R | undefined>;
|
|
770
771
|
}
|
|
771
772
|
//#endregion
|
|
772
|
-
export { Bindings, Choice, Choices, DotFlatten, DotNestedKeys, DotNestedValue, EnvParser, EventHandler, ExtractControllerMethods, FileSystem, GenericWithNullableStringValues, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IRequest, IResponse, IRouter, IServiceProvider, Logger, LoggerChalk, LoggerLog, LoggerParseSignature, PathLoader, Prompts, Resolver, RouteDefinition, RouteEventHandler, RouteMethod, RouterEnd, TaskManager, UseKey, baseTsconfig, mainTsconfig, packageJsonScript };
|
|
773
|
+
export { Bindings, Choice, type ChoiceOrSeparatorArray, Choices, DotFlatten, DotNestedKeys, DotNestedValue, EnvParser, EventHandler, ExtractControllerMethods, FileSystem, GenericWithNullableStringValues, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IRequest, IResponse, IRouter, ISeparator, IServiceProvider, Logger, LoggerChalk, LoggerLog, LoggerParseSignature, PathLoader, Prompts, Resolver, RouteDefinition, RouteEventHandler, RouteMethod, RouterEnd, TaskManager, UseKey, baseTsconfig, mainTsconfig, packageJsonScript };
|