Compare commits

..

2 Commits

Author SHA1 Message Date
cdcaeda67c + Added writable
All checks were successful
Build / Build NPM Project (push) Successful in 40s
Build / Tag Version (push) Successful in 8s
Build / Publish Documentation (push) Successful in 35s
2025-05-12 18:00:12 -04:00
482c90b53b + Added writable
All checks were successful
Build / Build NPM Project (push) Successful in 1m13s
Build / Tag Version (push) Successful in 15s
Build / Publish Documentation (push) Successful in 49s
2025-05-12 16:28:10 -04:00
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@ztimson/utils",
"version": "0.24.5",
"version": "0.24.7",
"description": "Utility library",
"author": "Zak Timson",
"license": "MIT",

View File

@ -18,3 +18,10 @@
export function typeKeys<T extends object>() {
return Object.keys(<T>{}) as Array<keyof T>;
}
/**
* Mark all properties as writable
*/
export type Writable<T> = {
-readonly [P in keyof T]: T[P]
};