vtils

Home > types > ReadonlyKeys

ReadonlyKeys type

Gets keys of an object which are readonly

Signature:

export declare type ReadonlyKeys<T extends object> = {
  [P in keyof T]-?: IsFullyWritable<Pick<T, P>> extends true ? never : P;
}[keyof T];