feat: add Writable type utility

This commit is contained in:
kotaindah55 2025-04-13 11:59:01 +02:00
parent c2b47a6df0
commit bbdd8523aa

4
src/types.d.ts vendored
View file

@ -68,6 +68,10 @@ declare global {
interface Window { interface Window {
globalThis: typeof globalThis; globalThis: typeof globalThis;
} }
type Writable<T> = {
-readonly [P in keyof T]: T[P];
}
} }
/** Token interface */ /** Token interface */