+ 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

This commit is contained in:
Zakary Timson 2025-05-12 16:28:10 -04:00
parent 7500ba502f
commit 482c90b53b
2 changed files with 8 additions and 1 deletions

View File

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

View File

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