@kubb/types
Advanced tools
Comparing version 0.0.0-canary-20240328221221 to 0.0.0-canary-20240331163352
{ | ||
"name": "@kubb/types", | ||
"version": "0.0.0-canary-20240328221221", | ||
"version": "0.0.0-canary-20240331163352", | ||
"description": "Generator types", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,7 +0,4 @@ | ||
export type Prettify<T> = | ||
& { | ||
[K in keyof T]: T[K] | ||
} | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
& {} | ||
export type Prettify<T> = { | ||
[K in keyof T]: T[K] | ||
} & {} // eslint-disable-next-line @typescript-eslint/ban-types | ||
@@ -29,3 +26,2 @@ export type PossiblePromise<T> = Promise<T> | T | ||
export type SplitByDelimiter<T extends string, D extends string> = T extends `${infer P}${D}${infer Q}` ? [P, ...SplitByDelimiter<Q, D>] | ||
: [T] | ||
export type SplitByDelimiter<T extends string, D extends string> = T extends `${infer P}${D}${infer Q}` ? [P, ...SplitByDelimiter<Q, D>] : [T] |
8931
31