🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

jet-paths

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jet-paths - npm Package Compare versions

Comparing version

to
1.0.9

10

dist/cjs/setupPaths.d.ts

@@ -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