Comparing version 1.0.8 to 1.0.9
@@ -1,8 +0,8 @@ | ||
type TObject = { | ||
[key: string]: string | TObject; | ||
type TObj = { | ||
[key: string]: string | TObj; | ||
}; | ||
type Deep<T> = T extends {} ? { | ||
type Deep<T extends TObj | string> = T extends string ? string : T extends TObj ? { | ||
[K in keyof T]: Deep<T[K]>; | ||
} : string; | ||
declare function setupPaths<T extends TObject>(pathObj: T, baseKey?: string): Deep<T>; | ||
} : unknown; | ||
declare function setupPaths<T extends TObj>(pathObj: T, baseKey?: string): Deep<T>; | ||
export default setupPaths; |
@@ -1,8 +0,8 @@ | ||
type TObject = { | ||
[key: string]: string | TObject; | ||
type TObj = { | ||
[key: string]: string | TObj; | ||
}; | ||
type Deep<T> = T extends {} ? { | ||
type Deep<T extends TObj | string> = T extends string ? string : T extends TObj ? { | ||
[K in keyof T]: Deep<T[K]>; | ||
} : string; | ||
declare function setupPaths<T extends TObject>(pathObj: T, baseKey?: string): Deep<T>; | ||
} : unknown; | ||
declare function setupPaths<T extends TObj>(pathObj: T, baseKey?: string): Deep<T>; | ||
export default setupPaths; |
@@ -1,8 +0,8 @@ | ||
type TObject = { | ||
[key: string]: string | TObject; | ||
type TObj = { | ||
[key: string]: string | TObj; | ||
}; | ||
type Deep<T> = T extends {} ? { | ||
type Deep<T extends TObj | string> = T extends string ? string : T extends TObj ? { | ||
[K in keyof T]: Deep<T[K]>; | ||
} : string; | ||
declare function setupPaths<T extends TObject>(pathObj: T, baseKey?: string): Deep<T>; | ||
} : unknown; | ||
declare function setupPaths<T extends TObj>(pathObj: T, baseKey?: string): Deep<T>; | ||
export default setupPaths; |
{ | ||
"name": "jet-paths", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Preprend strings in an object with the value from a base-key.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10394