Comparing version 0.7.6 to 0.7.7
export type Sep = '_' | '-'; | ||
export type Part = `${number}.${number}.${number}`; | ||
export type Full = Part | `${Part}${Sep}${string}${Sep | '.'}${Part | number}`; | ||
export type WithPre = `${Part}${Sep}${string}${Sep | '.'}${Part | number}`; | ||
export type Full = Part | WithPre; | ||
type Type<S extends string, Acc extends string = ''> = S extends `${infer First}${infer Rest}` ? (First extends Sep | '.' ? Acc : Type<Rest, `${Acc}${First}`>) : Acc; | ||
@@ -5,0 +6,0 @@ export type Parse<T extends Full, StripCore extends boolean> = T extends `${infer Core}${Sep}${infer Rest}` ? Rest extends `${infer U}` ? { |
{ | ||
"name": "utilium", | ||
"version": "0.7.6", | ||
"version": "0.7.7", | ||
"description": "Typescript utilies", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,4 +7,6 @@ import { capitalize } from './string.js'; | ||
export type Full = Part | `${Part}${Sep}${string}${Sep | '.'}${Part | number}`; | ||
export type WithPre = `${Part}${Sep}${string}${Sep | '.'}${Part | number}`; | ||
export type Full = Part | WithPre; | ||
type Type<S extends string, Acc extends string = ''> = S extends `${infer First}${infer Rest}` ? (First extends Sep | '.' ? Acc : Type<Rest, `${Acc}${First}`>) : Acc; | ||
@@ -11,0 +13,0 @@ |
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
75337
2127