@waiting/shared-types
Advanced tools
Comparing version 15.0.0 to 15.1.0
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 14.4.2 | ||
* @version 15.0.0 | ||
* @author waiting | ||
@@ -8,0 +8,0 @@ * @license MIT |
@@ -16,2 +16,8 @@ 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 RecordCamelKeys<T, D extends string = '_' | '-'> = { | ||
[K in keyof T as `${SnakeToCamel<K & string, D>}`]: T[K]; | ||
}; | ||
export declare type RecordParscalKeys<T, D extends string = '_' | '-'> = { | ||
[K in keyof T as `${SnakeToPascal<K & string, D>}`]: T[K]; | ||
}; | ||
export {}; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "15.0.0", | ||
"version": "15.1.0", | ||
"description": "shared typescript types", | ||
@@ -61,3 +61,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "4c63f4bb3a0c4cf04d689f15c63f4a6acb54d508" | ||
"gitHead": "34ea21ef15b0af017840c8f00ff578bbf1c1a133" | ||
} |
22220
609