@waiting/shared-types
Advanced tools
Comparing version 5.5.0 to 5.5.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [5.5.1](https://github.com/waitingsong/shared-types/compare/v5.5.0...v5.5.1) (2020-12-20) | ||
**Note:** Version bump only for package @waiting/shared-types | ||
# [5.5.0](https://github.com/waitingsong/shared-types/compare/v5.4.0...v5.5.0) (2020-12-19) | ||
@@ -8,0 +16,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 5.4.0 | ||
* @version 5.5.0 | ||
* @author waiting | ||
@@ -8,0 +8,0 @@ * @license MIT |
@@ -5,3 +5,3 @@ declare type V = string | number | boolean | bigint; | ||
]; | ||
export declare type StrJoin<T extends V[], D extends string> = T extends [] ? '' : T extends [unknown] ? `${T[0]}` : T extends [unknown, ...infer U] ? `${T[0]}${D}${StrJoin<U, D>}` : string; | ||
export declare type TupleJoin<T extends V[], D extends string> = T extends [] ? '' : T extends [unknown] ? `${T[0]}` : T extends [unknown, ...infer U] ? `${T[0]}${D}${TupleJoin<U, D>}` : string; | ||
declare type FormatCapitalize<T extends V[]> = T extends [] ? [] : T extends [string] ? [`${Capitalize<T[0]>}`] : T extends [string, ...infer U] ? [`${Capitalize<T[0]>}`, ...FormatCapitalize<U & V[]>] : [ | ||
@@ -11,4 +11,4 @@ ]; | ||
]; | ||
export declare type SnakeToCamel<T extends string, D extends string = '_' | '-'> = StrJoin<FormatCamelCase<StrSplit<T, D>>, ''>; | ||
export declare type SnakeToPascal<T extends string, D extends string = '_' | '-'> = StrJoin<FormatCapitalize<StrSplit<T, D>>, ''>; | ||
export declare type SnakeToCamel<T extends string, D extends string = '_' | '-'> = TupleJoin<FormatCamelCase<StrSplit<T, D>>, ''>; | ||
export declare type SnakeToPascal<T extends string, D extends string = '_' | '-'> = TupleJoin<FormatCapitalize<StrSplit<T, D>>, ''>; | ||
export {}; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "5.5.0", | ||
"version": "5.5.1", | ||
"description": "shared typescript types", | ||
@@ -74,3 +74,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "8ee4b4d66e89ab9cdc113cd421c734a72afb4a49" | ||
"gitHead": "3783a929bc93620f5d22ac6c18cf6dd9465927e0" | ||
} |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
35841
0