@waiting/shared-types
Advanced tools
Comparing version 16.3.0 to 16.3.1
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 16.2.0 | ||
* @version 16.3.0 | ||
* @author waiting | ||
@@ -8,0 +8,0 @@ * @license MIT |
@@ -22,4 +22,4 @@ export declare type StrSplit<S extends string, D extends string> = string extends S ? string[] : S extends `${infer T}${D}${infer U}` ? [T, ...StrSplit<U, D>] : [ | ||
}; | ||
export declare type CamelToSnake<T extends string> = T extends `_${infer U}` ? `_${CamelToSnake<U>}` : _CamelToSnake<T> extends `_${infer U}` ? U : _CamelToSnake<T>; | ||
export declare type CamelToSnake<T extends string> = T extends `_${infer U}` ? `_${_CamelToSnake<U>}` : _CamelToSnake<T> extends `_${infer U}` ? U : _CamelToSnake<T>; | ||
declare type _CamelToSnake<T extends string> = T extends `${infer U}${infer Rest}` ? U extends '_' ? `${U}${_CamelToSnake<Rest>}` : Uppercase<U> extends U ? `_${Lowercase<U>}${_CamelToSnake<Rest>}` : `${U}${_CamelToSnake<Rest>}` : Lowercase<T>; | ||
export {}; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "16.3.0", | ||
"version": "16.3.1", | ||
"description": "shared typescript types", | ||
@@ -63,3 +63,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "dcafeb68238eeff680a47fc04b84913115ec0453" | ||
"gitHead": "44fe4296417460d522783f3632fc783dcef00d34" | ||
} |
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
24916