nicot 1.0.38 → 1.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  export declare type RecursiveKeyOf<TObj extends Record<string, any>> = {
2
2
  [TKey in keyof TObj & string]: RecursiveKeyOfHandleValue<TObj[TKey], `${TKey}`>;
3
3
  }[keyof TObj & string];
4
- declare type RecursiveKeyOfInner<TObj extends Record<string, any>> = {
5
- [TKey in keyof TObj & string]: RecursiveKeyOfHandleValue<TObj[TKey], `.${TKey}`>;
4
+ declare type RecursiveKeyOfInner<TObj extends Record<string, any>, UsedTypes = never> = {
5
+ [TKey in keyof TObj & string]: RecursiveKeyOfHandleValue<TObj[TKey], `.${TKey}`, UsedTypes>;
6
6
  }[keyof TObj & string];
7
- declare type RecursiveKeyOfHandleValue<TValue, Text extends string> = TValue extends Function | ((...args: any[]) => any) | (new (...args: any[]) => any) ? never : TValue extends Date | string | number | boolean ? never : TValue extends (infer TItem)[] ? Text | `${Text}${RecursiveKeyOfInner<TItem>}` : TValue extends Record<string, any> ? Text | `${Text}${RecursiveKeyOfInner<TValue>}` : never;
7
+ declare type RecursiveKeyOfHandleValue<TValue, Text extends string, UsedTypes = never> = TValue extends Function | ((...args: any[]) => any) | (new (...args: any[]) => any) | UsedTypes ? never : TValue extends Date | string | number | boolean ? never : TValue extends (infer TItem)[] ? Text | `${Text}${RecursiveKeyOfInner<TItem, UsedTypes | TItem>}` : TValue extends Record<string, any> ? Text | `${Text}${RecursiveKeyOfInner<TValue, UsedTypes | TValue>}` : never;
8
8
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nicot",
3
3
  "description": "Nest.js interacting with class-validator + OpenAPI + TypeORM for Nest.js Restful API development.",
4
- "version": "1.0.38",
4
+ "version": "1.0.39",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {