helpertypes
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -0,1 +1,7 @@ | ||
## [0.0.3](https://github.com/wessberg/helpertypes/compare/v0.0.2...v0.0.3) (2021-06-06) | ||
### Features | ||
- add helpers: UppercaseKeys, LowercaseKeys, CapitalizeKeys, UncapitalizeKeys ([6ce3bfd](https://github.com/wessberg/helpertypes/commit/6ce3bfdc99ab438d7d1000b18f7a9a717668b821)) | ||
## [0.0.2](https://github.com/wessberg/helpertypes/compare/v0.0.1...v0.0.2) (2021-05-27) | ||
@@ -2,0 +8,0 @@ |
@@ -84,2 +84,14 @@ /** | ||
export declare type LastParameter<T extends ArbitraryFunction> = GetLast<Parameters<T>>; | ||
export declare type UncapitalizeKeys<T> = { | ||
[Key in keyof T as Uncapitalize<string & Key>]: T[Key]; | ||
}; | ||
export declare type CapitalizeKeys<T> = { | ||
[Key in keyof T as Capitalize<string & Key>]: T[Key]; | ||
}; | ||
export declare type LowercaseKeys<T> = { | ||
[Key in keyof T as Lowercase<string & Key>]: T[Key]; | ||
}; | ||
export declare type UppercaseKeys<T> = { | ||
[Key in keyof T as Uppercase<string & Key>]: T[Key]; | ||
}; | ||
declare type Prev<T extends number> = [ | ||
@@ -86,0 +98,0 @@ -1, |
{ | ||
"name": "helpertypes", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A collection of TypeScript helper types", | ||
@@ -45,19 +45,19 @@ "scripts": { | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.25.0", | ||
"@typescript-eslint/parser": "^4.25.0", | ||
"@wessberg/ts-config": "^1.1.0", | ||
"sandhog": "^1.0.38", | ||
"eslint": "^7.27.0", | ||
"@typescript-eslint/eslint-plugin": "^4.26.0", | ||
"@typescript-eslint/parser": "^4.26.0", | ||
"@wessberg/ts-config": "^1.1.2", | ||
"sandhog": "^1.0.41", | ||
"eslint": "^7.28.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.23.3", | ||
"eslint-plugin-jsdoc": "^35.0.0", | ||
"eslint-plugin-import": "^2.23.4", | ||
"eslint-plugin-jsdoc": "^35.1.3", | ||
"husky": "^6.0.0", | ||
"np": "7.5.0", | ||
"pnpm": "^6.4.0", | ||
"prettier": "^2.3.0", | ||
"pnpm": "^6.7.1", | ||
"prettier": "^2.3.1", | ||
"pretty-quick": "^3.1.0", | ||
"rimraf": "^3.0.2", | ||
"standard-changelog": "^2.0.27", | ||
"typescript": "^4.2.4", | ||
"npm-check-updates": "^11.5.13" | ||
"typescript": "^4.3.2", | ||
"npm-check-updates": "^11.6.0" | ||
}, | ||
@@ -64,0 +64,0 @@ "main": "./dist/index.d.ts", |
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
19656
192