@clerc/utils
Advanced tools
Comparing version 0.32.1 to 0.32.3
@@ -8,8 +8,2 @@ import * as _clerc_core from '@clerc/core'; | ||
type MaybeArray<T> = T | T[]; | ||
type GetLength<T extends any[]> = T extends { | ||
length: infer L extends number; | ||
} ? L : never; | ||
type GetTail<T extends any[]> = T extends [infer _Head, ...infer Tail] ? Tail : never; | ||
type EnhanceSingle<T, E extends Dict<any>> = T & E; | ||
type Enhance<T, E extends Dict<any> | Dict<any>[]> = GetLength<ToArray<E>> extends 0 ? T : Enhance<EnhanceSingle<T, ToArray<E>[0]>, GetTail<ToArray<E>>>; | ||
declare const toArray: <T>(a: MaybeArray<T>) => T[]; | ||
@@ -30,2 +24,2 @@ type AlphabetLowercase = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z"; | ||
export { CamelCase, Dict, Enhance, Equals, GetLength, GetTail, KebabCase, MaybeArray, ToArray, arrayEquals, arrayStartsWith, camelCase, generateCommandsFromCommandArray, gracefulFlagName, gracefulVersion, kebabCase, semanticArray, toArray }; | ||
export { CamelCase, Dict, Equals, KebabCase, MaybeArray, ToArray, arrayEquals, arrayStartsWith, camelCase, generateCommandsFromCommandArray, gracefulFlagName, gracefulVersion, kebabCase, semanticArray, toArray }; |
{ | ||
"name": "@clerc/utils", | ||
"version": "0.32.1", | ||
"version": "0.32.3", | ||
"author": "Ray <i@mk1.io> (https://github.com/so1ve)", | ||
@@ -48,3 +48,3 @@ "description": "Clerc utils", | ||
"devDependencies": { | ||
"type-fest": "^3.5.3" | ||
"type-fest": "^3.6.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4920
24