import type {ReadonlyKeysOf} from './readonly-keys-of.d.ts'; /** Extract all writable keys from the given type. This is useful when you want to create a new type that contains writable keys only. @example ``` import type {WritableKeysOf} from 'type-fest'; interface User { name: string; surname: string; readonly id: number; } type UpdateRequest = Pick>; const update1: UpdateRequest = { name: 'Alice', surname: 'Acme', }; ``` @category Utilities */ export type WritableKeysOf = Type extends unknown // For distributing `Type` ? Exclude> : never; // Should never happen export {};