🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

todash

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

todash - npm Package Compare versions

Comparing version
2.2.0
to
2.3.0
+4
-0
dist/index.d.ts

@@ -64,2 +64,6 @@ import * as Utils from './utils';

/**
* 给对象的 key(string) 增加 指定后缀
*/
type ObjAddStrKeySuffix<Origin extends Record<string, any>, Suffix extends string = ""> = Utils.ObjAddStrKeySuffix<Origin, Suffix>;
/**
* 返回元组的第一项

@@ -66,0 +70,0 @@ */

@@ -67,1 +67,9 @@ /**

export declare type EnsureString<T> = T extends string ? T : '';
/**
* 给对象的 key(string) 增加 指定后缀
*/
export declare type ObjAddStrKeySuffix<Origin extends Record<string, any>, Suffix extends string = ''> = {
[K in {
[K2 in keyof Origin]: K2 extends string ? `${K2}${Suffix}` : never;
}[keyof Origin]]: K extends `${infer RK}${Suffix}` ? RK extends string ? Origin[RK] : never : never;
};
+2
-2
{
"name": "todash",
"version": "2.2.0",
"version": "2.3.0",
"description": "Todash 是一个类型推导工具库,旨在帮助你快速方便的编写具备类型推导的 TypeScript 代码。",

@@ -33,5 +33,5 @@ "main": "index.js",

"rimraf": "^3.0.2",
"typescript": "^4.5.3"
"typescript": "^4.7.4"
},
"dependencies": {}
}