+ 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:
2025-05-12 16:28:10 -04:00
parent 7500ba502f
commit 482c90b53b
2 changed files with 8 additions and 1 deletions

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]
};