Compare commits

...

1 Commits

Author SHA1 Message Date
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.6",
"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
*/
type Writable<T> = {
-readonly [P in keyof T]: T[P]
};