kmore-types
Advanced tools
Comparing version 61.2.8 to 61.2.9
@@ -76,3 +76,3 @@ import type { SnakeToCamel, SnakeToPascal } from '@waiting/shared-types'; | ||
[TbName in keyof D]: TbName extends string ? { | ||
[F in keyof D[TbName]]: Record<`${SnakeToCamel<TbName & string>}${SnakeToPascal<F & string>}`, `${TbName}.${F & string}`>; | ||
[F in keyof D[TbName]]: F extends string ? Record<`${SnakeToCamel<TbName>}${SnakeToPascal<F>}`, `${TbName}.${F}`> : never; | ||
} : never; | ||
@@ -95,3 +95,3 @@ }; | ||
export type CamelColumns<T> = { | ||
[F in keyof T as F extends string ? `${SnakeToCamel<F>}` : never]: F extends string ? SnakeToCamel<F> : never; | ||
[F in keyof T as F extends string ? `${SnakeToCamel<F>}` : F]: F extends string ? SnakeToCamel<F> : never; | ||
}; | ||
@@ -107,3 +107,3 @@ /** | ||
export type ScopedColumns<T, K extends string> = { | ||
[F in keyof T]: F extends string ? `${K}.${F}` : never; | ||
[F in keyof T]: F extends string | number ? `${K}.${F}` : never; | ||
}; | ||
@@ -201,3 +201,3 @@ /** | ||
export type ScopedColumnsType<T, K extends string> = { | ||
[F in keyof T as `${K}.${F & string}`]: T[F]; | ||
[F in keyof T as F extends string | number ? `${K}.${F}` : F]: T[F]; | ||
}; | ||
@@ -214,4 +214,4 @@ /** | ||
export type AliasColumnsType<T, K extends string> = { | ||
[F in keyof T as F extends string ? `${SnakeToCamel<K>}${SnakeToPascal<F>}` : never]: T[F]; | ||
[F in keyof T as F extends string ? `${SnakeToCamel<K>}${SnakeToPascal<F>}` : F]: T[F]; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "kmore-types", | ||
"author": "waiting", | ||
"version": "61.2.8", | ||
"version": "61.2.9", | ||
"description": "Retrieve types info from ts file", | ||
@@ -73,3 +73,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "aa313ebae47bbb0b298feaa290da54fa27e743df" | ||
"gitHead": "98658a7d1a7a34db01e08e2486f001689c16c441" | ||
} |
@@ -90,3 +90,5 @@ import type { SnakeToCamel, SnakeToPascal } from '@waiting/shared-types' | ||
? { | ||
[F in keyof D[TbName]]: Record<`${SnakeToCamel<TbName & string>}${SnakeToPascal<F & string>}`, `${TbName}.${F & string}`> | ||
[F in keyof D[TbName]]: F extends string | ||
? Record<`${SnakeToCamel<TbName>}${SnakeToPascal<F>}`, `${TbName}.${F}`> | ||
: never | ||
} | ||
@@ -113,3 +115,3 @@ : never | ||
export type CamelColumns<T> = { | ||
[F in keyof T as F extends string ? `${SnakeToCamel<F>}` : never]: F extends string | ||
[F in keyof T as F extends string ? `${SnakeToCamel<F>}` : F]: F extends string | ||
? SnakeToCamel<F> | ||
@@ -127,3 +129,3 @@ : never | ||
export type ScopedColumns<T, K extends string> = { | ||
[F in keyof T]: F extends string ? `${K}.${F}` : never | ||
[F in keyof T]: F extends string | number ? `${K}.${F}` : never | ||
} | ||
@@ -233,3 +235,3 @@ /** | ||
export type ScopedColumnsType<T, K extends string> = { | ||
[F in keyof T as `${K}.${F & string}`]: T[F] | ||
[F in keyof T as F extends string | number ? `${K}.${F}` : F]: T[F] | ||
} | ||
@@ -246,4 +248,4 @@ /** | ||
export type AliasColumnsType<T, K extends string> = { | ||
[F in keyof T as F extends string ? `${SnakeToCamel<K>}${SnakeToPascal<F>}` : never]: T[F] | ||
[F in keyof T as F extends string ? `${SnakeToCamel<K>}${SnakeToPascal<F>}` : F]: T[F] | ||
} | ||
Sorry, the diff of this file is not supported yet
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
27786
791